|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.parse.tags.read.ReadTags
org.encog.parse.tags.read.ReadXML
public class ReadXML
This class is designed to read XML. It has several helper methods, beyond what the ReadTags class provides to assist in reading XML documents.
| Field Summary |
|---|
| Fields inherited from class org.encog.parse.tags.read.ReadTags |
|---|
CHAR_BULLET, CHAR_TRADEMARK, MAX_LENGTH |
| Constructor Summary | |
|---|---|
ReadXML(InputStream is)
Construct an XML reader. |
|
| Method Summary | |
|---|---|
boolean |
findTag(String name,
boolean beginTag)
Advance until the specified tag is found. |
int |
readIntToTag()
Read an integer that is contained between the current position, and the next tag. |
Map<String,String> |
readPropertyBlock()
Read all property data until an end tag, which corrisponds to the current tag, is found. |
String |
readTextToTag()
Read all text between the current position and the next tag. |
| Methods inherited from class org.encog.parse.tags.read.ReadTags |
|---|
eatWhitespace, getTag, is, parseAttributeName, parseString, parseTag, read, readToTag, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReadXML(InputStream is)
is - The input stream to read from.| Method Detail |
|---|
public boolean findTag(String name,
boolean beginTag)
name - The name of the tag we are looking for.beginTag - True if this is a begin tage, false otherwise.
public int readIntToTag()
public Map<String,String> readPropertyBlock()
public String readTextToTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||