faust.sacha.web.util
Class HTMLFile

java.lang.Object
  |
  +--javax.swing.text.html.HTMLEditorKit.ParserCallback
        |
        +--faust.sacha.web.util.HTMLParser
              |
              +--faust.sacha.web.util.HTMLFile

public class HTMLFile
extends HTMLParser


Field Summary
 
Fields inherited from class faust.sacha.web.util.HTMLParser
out
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
 
Constructor Summary
HTMLFile()
          Class collecting information in the HTML files.
 
Method Summary
 java.util.ArrayList getComments()
           
 java.util.ArrayList getEmailFound()
           
 java.util.ArrayList getMiscFound()
           
 java.util.ArrayList getURLList()
           
 void handleComment(char[] text, int position)
           
 void handleEndTag(javax.swing.text.html.HTML.Tag tag, int position)
           
 void handleSimpleTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attributes, int position)
           
 void handleStartTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attributes, int position)
           
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush, handleEndOfLineString, handleError, handleText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLFile

public HTMLFile()
Class collecting information in the HTML files.

Method Detail

handleStartTag

public void handleStartTag(javax.swing.text.html.HTML.Tag tag,
                           javax.swing.text.MutableAttributeSet attributes,
                           int position)
Overrides:
handleStartTag in class javax.swing.text.html.HTMLEditorKit.ParserCallback

handleEndTag

public void handleEndTag(javax.swing.text.html.HTML.Tag tag,
                         int position)
Overrides:
handleEndTag in class javax.swing.text.html.HTMLEditorKit.ParserCallback

handleSimpleTag

public void handleSimpleTag(javax.swing.text.html.HTML.Tag tag,
                            javax.swing.text.MutableAttributeSet attributes,
                            int position)
Overrides:
handleSimpleTag in class javax.swing.text.html.HTMLEditorKit.ParserCallback

handleComment

public void handleComment(char[] text,
                          int position)
Overrides:
handleComment in class javax.swing.text.html.HTMLEditorKit.ParserCallback

getURLList

public java.util.ArrayList getURLList()
Returns:
The urls found in the html file.

getEmailFound

public java.util.ArrayList getEmailFound()
Returns:
The emails found in the html file.

getMiscFound

public java.util.ArrayList getMiscFound()
Returns:
The urls found with non http protocol found in the html file.

getComments

public java.util.ArrayList getComments()
Returns:
The comments found in the html file.