|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.admin.rest.readers.InputReader
org.glassfish.admin.rest.readers.XmlInputReader
public class XmlInputReader
| Field Summary | |
|---|---|
static java.util.HashMap |
entity
The table of entity values. |
| Constructor Summary | |
|---|---|
XmlInputReader(java.io.Reader reader)
Construct a XmlInputReader from a string. |
|
XmlInputReader(java.lang.String s)
Construct a InputReader from a string. |
|
| Method Summary | |
|---|---|
java.lang.String |
nextCDATA()
Get the text in the CDATA block. |
java.lang.Object |
nextContent()
Get the next XML outer token, trimming whitespace. |
java.lang.Object |
nextEntity(char a)
Return the next entity. |
java.lang.Object |
nextMeta()
Returns the next XML meta token. |
java.lang.Object |
nextToken()
Get the next XML Token. |
boolean |
skipPast(java.lang.String to)
Skip characters until past the requested string. |
| Methods inherited from class org.glassfish.admin.rest.readers.InputReader |
|---|
back, error, more, next, next, nextNonSpace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.HashMap entity
| Constructor Detail |
|---|
public XmlInputReader(java.io.Reader reader)
reader - A reader.public XmlInputReader(java.lang.String s)
s - A source string.| Method Detail |
|---|
public java.lang.String nextCDATA()
throws InputException
]]>.
InputException - If the ]]> is not found.
public java.lang.Object nextContent()
throws InputException
InputException
public java.lang.Object nextEntity(char a)
throws InputException
& ' > < ".
a - An ampersand character.
InputException - If missing ';' in XML entity.
public java.lang.Object nextMeta()
throws InputException
< > / = ! ?) are returned as
Character, and strings and names are returned as Boolean. We don't care
what the values actually are.
InputException - If a string is not properly closed or if the XML
is badly structured.
public java.lang.Object nextToken()
throws InputException
/ > = ! ? or it
may be a string wrapped in single quotes or double quotes, or it may be a
name.
InputException - If the XML is not well formed.
public boolean skipPast(java.lang.String to)
throws InputException
to - A string to skip past.
InputException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||