|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.parse.tags.read.ReadTags
public class ReadTags
Base class used to read tags. This base class is used by both the XML and HTML parsing.
Field Summary | |
---|---|
static int |
CHAR_BULLET
The bullet character. |
static int |
CHAR_TRADEMARK
The bullet character. |
static int |
MAX_LENGTH
Maximum length string to read. |
Constructor Summary | |
---|---|
ReadTags(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. |
Tag |
getTag()
Return the last tag found, this is normally called just after the read function returns a zero. |
boolean |
is(String name,
boolean start)
Checks to see if the next tag is the tag specified. |
protected String |
parseAttributeName()
Parse an attribute name, if one is present. |
protected 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. |
boolean |
readToTag()
Read until we reach the next tag. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CHAR_BULLET
public static final int CHAR_TRADEMARK
public static final int MAX_LENGTH
Constructor Detail |
---|
public ReadTags(InputStream is)
is
- An InputStream to parse from.Method Detail |
---|
protected void eatWhitespace()
public Tag getTag()
public boolean is(String name, boolean start)
name
- The name of the tag desired.start
- True if a starting tag is desired.
protected String parseAttributeName()
protected String parseString()
protected void parseTag()
public int read()
public boolean readToTag()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |