public final class StreamingParserImpl extends StreamingParser
| Modifier and Type | Method and Description |
|---|---|
int |
column()
Returns the column number of the current component,
or -1 if the column number is not known.
|
String |
describe(boolean articleNeeded)
Constructs a string describing the current state of this parser,
suitable for use in an error message or an exception detail string.
|
boolean |
isCoalescing()
Returns the coalescing property of this parser.
|
boolean |
isNamespaceAware()
Returns the namespaceAware property of this parser.
|
boolean |
isValidating()
Returns the validating property of this parser.
|
int |
line()
Returns the line number of the current component,
or -1 if the line number is not known.
|
String |
name()
Returns a name string whose meaning depends upon the current state.
|
int |
parse()
Parses the next component of the document being parsed.
|
String |
publicId()
Returns the public identifer of the document being parsed,
or null if it has none.
|
int |
state()
Returns the current state of the parser.
|
String |
systemId()
Returns the system identifer of the document being parsed,
or null if it has none.
|
String |
uriString()
Returns the URI string of the current component.
|
String |
value()
Returns a value string whose meaning depends upon the current state.
|
describe, toStringpublic int parse()
throws ParseException,
IOException
parse in class StreamingParserStreamingParser.START,
StreamingParser.END, StreamingParser.ATTR, StreamingParser.CHARS, StreamingParser.IWS,
or StreamingParser.PI, or -1 if the end of the document has
been reachedParseException - If an XML parsing error occursIOException - If an I/O error occurspublic int state()
state in class StreamingParserStreamingParser.START,
StreamingParser.END, StreamingParser.ATTR, StreamingParser.CHARS, StreamingParser.IWS,
or StreamingParser.PI, or -1 if the end of the document has
been reached.IllegalStateException - If the parser has yet not been started by invoking the
parse() methodpublic String name()
name in class StreamingParserIllegalStateException - If there is no name data for the current parser statepublic String value()
value in class StreamingParserIllegalStateException - If there is no value data for the current parser statepublic String uriString()
uriString in class StreamingParserIllegalStateException - If there is no URI for the current componentpublic int line()
line in class StreamingParserpublic int column()
column in class StreamingParserpublic String publicId()
publicId in class StreamingParserpublic String systemId()
systemId in class StreamingParserpublic boolean isValidating()
isValidating in class StreamingParserpublic boolean isCoalescing()
isCoalescing in class StreamingParserpublic boolean isNamespaceAware()
isNamespaceAware in class StreamingParserpublic String describe(boolean articleNeeded)
describe in class StreamingParserarticleNeeded - Whether an appropriate article ("a", "an", "some", or "the") is
to be prepended to the description stringCopyright © 2017–2019 Eclipse Foundation. All rights reserved.