public interface IXMLReader
| Modifier and Type | Field and Description |
|---|---|
static int |
CDSECT |
static int |
COMMENT |
static int |
DOCDECL |
static int |
END_DOCUMENT |
static int |
END_TAG |
static int |
ENTITY_REF |
static int |
IGNORABLE_WHITESPACE |
static int |
PROCESSING_INSTRUCTION |
static int |
START_DOCUMENT |
static int |
START_TAG |
static int |
TEXT |
| Modifier and Type | Method and Description |
|---|---|
String |
buildPositionString()
Build current parse input position description.
|
int |
getAttributeCount()
Get the number of attributes of the current start tag.
|
String |
getAttributeName(int index)
Get an attribute name from the current start tag.
|
String |
getAttributeNamespace(int index)
Get an attribute namespace from the current start tag.
|
String |
getAttributePrefix(int index)
Get an attribute prefix from the current start tag.
|
String |
getAttributeValue(int index)
Get an attribute value from the current start tag.
|
String |
getAttributeValue(String ns,
String name)
Get an attribute value from the current start tag.
|
int |
getColumnNumber()
Get current source column number.
|
String |
getDocumentName()
Get document name.
|
int |
getEventType()
Gets the current parse event type, without changing the current parse
state.
|
String |
getInputEncoding()
Return the input encoding, if known.
|
int |
getLineNumber()
Get current source line number.
|
String |
getName()
Get element name from the current start or end tag.
|
String |
getNamespace()
Get element namespace from the current start or end tag.
|
String |
getNamespace(String prefix)
Get namespace URI associated with prefix.
|
int |
getNamespaceCount(int depth)
Get number of namespace declarations active at depth.
|
String |
getNamespacePrefix(int index)
Get namespace prefix.
|
String |
getNamespaceUri(int index)
Get namespace URI.
|
int |
getNestingDepth()
Get current element nesting depth.
|
String |
getPrefix()
Get element prefix from the current start or end tag.
|
String |
getText()
Get current text.
|
void |
init()
Initialize reader.
|
boolean |
isNamespaceAware()
Return namespace processing flag.
|
int |
next()
Advance to next binding component of input document.
|
int |
nextToken()
Advance to next parse event of input document.
|
static final int START_DOCUMENT
static final int END_DOCUMENT
static final int START_TAG
static final int END_TAG
static final int TEXT
static final int CDSECT
static final int ENTITY_REF
static final int IGNORABLE_WHITESPACE
static final int PROCESSING_INSTRUCTION
static final int COMMENT
static final int DOCDECL
void init()
throws IOException
IOExceptionString buildPositionString()
int nextToken()
throws JiBXException
JiBXException - if error reading or parsing documentint next()
throws JiBXException
nextToken(), which consolidates text
content and ignores parse events for components such as comments and PIs.JiBXException - if error reading or parsing documentint getEventType()
throws JiBXException
JiBXException - if error parsing documentString getName()
IllegalStateException - if not at a start or end tag (optional)String getNamespace()
IllegalStateException - if not at a start or end tag (optional)String getPrefix()
null if no prefix)IllegalStateException - if not at a start or end tagint getAttributeCount()
IllegalStateException - if not at a start tag (optional)String getAttributeName(int index)
index - attribute indexIllegalStateException - if not at a start tag or invalid indexString getAttributeNamespace(int index)
index - attribute indexIllegalStateException - if not at a start tag or invalid indexString getAttributePrefix(int index)
index - attribute indexnull if no prefix present)IllegalStateException - if not at a start tag or invalid indexString getAttributeValue(int index)
index - attribute indexIllegalStateException - if not at a start tag or invalid indexString getAttributeValue(String ns, String name)
ns - namespace URI for expected attribute (may be null
or the empty string for the empty namespace)name - attribute name expectednull if missingIllegalStateException - if not at a start tagString getText()
int getNestingDepth()
int getNamespaceCount(int depth)
depth - element nesting depthIllegalArgumentException - if invalid depthString getNamespaceUri(int index)
index - declaration indexIllegalArgumentException - if invalid indexString getNamespacePrefix(int index)
index - declaration indexnull if a default namespaceIllegalArgumentException - if invalid indexString getDocumentName()
null if not knownint getLineNumber()
-1 if line number
information not availableint getColumnNumber()
-1 if column
number information not availableString getNamespace(String prefix)
prefix - namespace prefix to be matched (null for
default namespace)null if prefix not defined)String getInputEncoding()
null if unknown)boolean isNamespaceAware()
true if namespaces are
processed by reader, false if not)Copyright © 2005-2013 jibx.org. All Rights Reserved.