Package | Description |
---|---|
org.codehaus.plexus.util.xml |
XML utilities.
|
org.codehaus.plexus.util.xml.pull |
XML Pull Parser interface and implementation.
|
Modifier and Type | Method and Description |
---|---|
static Xpp3Dom |
Xpp3DomBuilder.build(InputStream is,
String encoding) |
static Xpp3Dom |
Xpp3DomBuilder.build(InputStream is,
String encoding,
boolean trim) |
static Xpp3Dom |
Xpp3DomBuilder.build(Reader reader) |
static Xpp3Dom |
Xpp3DomBuilder.build(Reader reader,
boolean trim) |
static Xpp3Dom |
Xpp3DomBuilder.build(XmlPullParser parser) |
static Xpp3Dom |
Xpp3DomBuilder.build(XmlPullParser parser,
boolean trim) |
Modifier and Type | Method and Description |
---|---|
void |
XmlPullParser.defineEntityReplacementText(String entityName,
String replacementText)
Set new value for entity replacement text as defined in
XML 1.0 Section 4.5
Construction of Internal Entity Replacement Text.
|
void |
MXParser.defineEntityReplacementText(String entityName,
String replacementText) |
protected void |
MXParser.fillBuf() |
int |
XmlPullParser.getEventType()
Returns the type of the current event (START_TAG, END_TAG, TEXT, etc.)
|
int |
MXParser.getEventType() |
int |
XmlPullParser.getNamespaceCount(int depth)
Returns the numbers of elements in the namespace stack for the given
depth.
|
int |
MXParser.getNamespaceCount(int depth) |
String |
XmlPullParser.getNamespacePrefix(int pos)
Returns the namespace prefixe for the given position
in the namespace stack.
|
String |
MXParser.getNamespacePrefix(int pos) |
String |
XmlPullParser.getNamespaceUri(int pos)
Returns the namespace URI for the given position in the
namespace stack
If the position is out of range, an exception is thrown.
|
String |
MXParser.getNamespaceUri(int pos) |
boolean |
XmlPullParser.isEmptyElementTag()
Returns true if the current event is START_TAG and the tag
is degenerated
(e.g.
|
boolean |
MXParser.isEmptyElementTag() |
boolean |
XmlPullParser.isWhitespace()
Checks whether the current TEXT event contains only whitespace
characters.
|
boolean |
MXParser.isWhitespace() |
protected char[] |
MXParser.lookuEntityReplacement(int entitNameLen) |
protected char |
MXParser.more() |
int |
XmlPullParser.next()
Get next parsing event - element content wil be coalesced and only one
TEXT event must be returned for whole element content
(comments and processing instructions will be ignored and emtity references
must be expanded or exception mus be thrown if entity reerence can not be exapnded).
|
int |
MXParser.next() |
protected int |
MXParser.nextImpl() |
int |
XmlPullParser.nextTag()
Call next() and return event if it is START_TAG or END_TAG
otherwise throw an exception.
|
int |
MXParser.nextTag() |
String |
XmlPullParser.nextText()
If current event is START_TAG then if next element is TEXT then element content is returned
or if next event is END_TAG then empty string is returned, otherwise exception is thrown.
|
String |
MXParser.nextText() |
int |
XmlPullParser.nextToken()
This method works similarly to next() but will expose
additional event types (COMMENT, CDSECT, DOCDECL, ENTITY_REF, PROCESSING_INSTRUCTION, or
IGNORABLE_WHITESPACE) if they are available in input.
|
int |
MXParser.nextToken() |
protected char |
MXParser.parseAttribute() |
protected void |
MXParser.parseCDSect(boolean hadCharData) |
protected void |
MXParser.parseComment() |
protected void |
MXParser.parseDocdecl() |
int |
MXParser.parseEndTag() |
protected char[] |
MXParser.parseEntityRef() |
protected int |
MXParser.parseEpilog() |
protected boolean |
MXParser.parsePI() |
protected int |
MXParser.parseProlog() |
int |
MXParser.parseStartTag() |
protected void |
MXParser.parseXmlDecl(char ch) |
protected void |
MXParser.parseXmlDeclWithVersion(int versionStart,
int versionEnd) |
void |
XmlPullParser.require(int type,
String namespace,
String name)
Test if the current event is of the given type and if the
namespace and name do match. null will match any namespace
and any name.
|
void |
MXParser.require(int type,
String namespace,
String name) |
protected char |
MXParser.requireInput(char ch,
char[] input) |
protected char |
MXParser.requireNextS() |
void |
XmlPullParser.setFeature(String name,
boolean state)
Use this call to change the general behaviour of the parser,
such as namespace processing or doctype declaration handling.
|
void |
MXParser.setFeature(String name,
boolean state)
Method setFeature
|
void |
XmlPullParser.setInput(InputStream inputStream,
String inputEncoding)
Sets the input stream the parser is going to process.
|
void |
MXParser.setInput(InputStream inputStream,
String inputEncoding) |
void |
XmlPullParser.setInput(Reader in)
Set the input source for parser to the given reader and
resets the parser.
|
void |
MXParser.setInput(Reader in) |
void |
XmlPullParser.setProperty(String name,
Object value)
Set the value of a property.
|
void |
MXParser.setProperty(String name,
Object value) |
protected char |
MXParser.skipS(char ch) |
void |
MXParser.skipSubTree()
Skip sub tree that is currently porser positioned on.
|
Copyright © 2001-2014 Codehaus. All Rights Reserved.