org.encog.parse.tags.read
Modifier and Type | Field and Description |
---|---|
static int |
CHAR_BULLET
The bullet character.
|
static int |
CHAR_TRADEMARK
The bullet character.
|
static int |
MAX_LENGTH
Maximum length string to read.
|
Constructor and Description |
---|
ReadTags(InputStream is)
The constructor should be passed an InputStream that we will parse from.
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final int CHAR_BULLET
public static final int CHAR_TRADEMARK
public static final int MAX_LENGTH
public ReadTags(InputStream is)
is
- An InputStream to parse from.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()
Copyright © 2014. All Rights Reserved.