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
For DEBUG : main()
import java.net.MalformedURLException;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.*;
import faust.sacha.web.data.*;
import faust.sacha.web.util.*;
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 |
HTMLFile
public HTMLFile()
- Class collecting information in the HTML files.
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.