|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.bot.html.ParseHTML
public class ParseHTML
ParseHTML: This is the class that actually parses the HTML and outputs HTMLTag objects and raw text.
| Field Summary | |
|---|---|
static char |
BULL
Special char. |
static char |
CR
Carriage return. |
static char |
LF
Linefeed. |
static int |
MAX_NAME_LENGTH
The maximum name that will be parsed. |
static char |
TRADE
Special char. |
| Constructor Summary | |
|---|---|
ParseHTML(java.io.InputStream is)
The constructor should be passed an InputStream that we will parse from. |
|
| Method Summary | |
|---|---|
protected void |
eatWhitespace()
Remove any whitespace characters that are next in the InputStream. |
HTMLTag |
getTag()
Return the last tag found, this is normally called just after the read function returns a zero. |
protected java.lang.String |
parseAttributeName()
Parse an attribute name, if one is present. |
protected java.lang.String |
parseString()
Called to parse a double or single quote string. |
protected void |
parseTag()
Called when a tag is detected. |
int |
read()
Read a single character from the HTML source, if this function returns zero(0) then you should call getTag to see what tag was found. |
java.lang.String |
toString()
Convert the HTML document back to a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char BULL
public static final char TRADE
public static final char CR
public static final char LF
public static final int MAX_NAME_LENGTH
| Constructor Detail |
|---|
public ParseHTML(java.io.InputStream is)
is - An InputStream to parse from.| Method Detail |
|---|
protected void eatWhitespace()
throws java.io.IOException
java.io.IOException - If an I/O exception occurs.public HTMLTag getTag()
protected java.lang.String parseAttributeName()
throws java.io.IOException
java.io.IOException - If an I/O exception occurs.
protected java.lang.String parseString()
throws java.io.IOException
java.io.IOException - If an I/O exception occurs.
protected void parseTag()
throws java.io.IOException
java.io.IOException - If an I/O exception occurs.
public int read()
throws java.io.IOException
java.io.IOException - If an error occurs while reading.public java.lang.String toString()
toString in class java.lang.Object
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||