public abstract class XMLStreamEvents extends Object
XMLStreamEventsSync) and asynchronous (XMLStreamEventsAsync) implementations.| Modifier and Type | Class and Description |
|---|---|
static class |
XMLStreamEvents.Attribute
An attribute on an element node.
|
static class |
XMLStreamEvents.ElementContext
Information about an Element node.
|
static class |
XMLStreamEvents.Event
Parsing event.
|
protected static class |
XMLStreamEvents.Starter
Helper class to start parsing the XML file and detect the encoding, either with a BOM or with the XML declaration tag.
|
| Modifier and Type | Field and Description |
|---|---|
XMLStreamEvents.Event |
event |
protected int |
maxCDataSize |
protected int |
maxTextSize |
protected ICharacterStream.Readable.Buffered |
stream |
| Constructor and Description |
|---|
XMLStreamEvents() |
| Modifier and Type | Method and Description |
|---|---|
XMLStreamEvents.Attribute |
getAttributeByFullName(CharSequence name)
Shortcut to get the attribute for the given full name.
|
XMLStreamEvents.Attribute |
getAttributeByLocalName(CharSequence name)
Shortcut to get the attibute for the given local name.
|
UnprotectedStringBuffer |
getAttributeValueByFullName(CharSequence name)
Shortcut to get the value of the given attribute name.
|
UnprotectedStringBuffer |
getAttributeValueByLocalName(CharSequence name)
Shortcut to get the value of the given attribute name.
|
UnprotectedStringBuffer |
getAttributeValueWithNamespaceURI(CharSequence uri,
CharSequence name)
Shortcut to get the value of the given attribute name.
|
UnprotectedStringBuffer |
getAttributeValueWithPrefix(CharSequence prefix,
CharSequence name)
Shortcut to get the value of the given attribute name.
|
XMLStreamEvents.Attribute |
getAttributeWithNamespaceURI(CharSequence uri,
CharSequence name)
Shortcut to get the attribute for the given namespace URI and local name.
|
XMLStreamEvents.Attribute |
getAttributeWithPrefix(CharSequence prefix,
CharSequence name)
Shortcut to get the attribute for the given namespace prefix and local name.
|
ICharacterStream.Readable.Buffered |
getCharacterStream() |
int |
getMaximumCDataSize() |
int |
getMaximumTextSize() |
UnprotectedStringBuffer |
getNamespaceURI(CharSequence namespacePrefix)
Get the namespace URI for a prefix, or empty string if the prefix is not defined.
|
static boolean |
isNameChar(char c)
Return true if the given character is a valid character for a name.
|
static boolean |
isNameStartChar(char c)
Return true if the given character is a valid starting character for a name.
|
static boolean |
isSpaceChar(char c)
Return true if the given character is considered as a white space.
|
protected void |
onStartElement(int i) |
protected void |
readNamespaces(XMLStreamEvents.ElementContext ctx) |
XMLStreamEvents.Attribute |
removeAttributeByFullName(CharSequence name)
Remove and return the attribute for the given full name if it exists.
|
XMLStreamEvents.Attribute |
removeAttributeByLocalName(CharSequence name)
Remove and return the attibute for the given local name if it exists.
|
XMLStreamEvents.Attribute |
removeAttributeWithNamespaceURI(CharSequence uri,
CharSequence name)
Remove and return the attribute for the given namespace URI and local name if it exists.
|
XMLStreamEvents.Attribute |
removeAttributeWithPrefix(CharSequence prefix,
CharSequence name)
Remove and return the attribute for the given namespace prefix and local name if it exists.
|
protected void |
reset() |
void |
setMaximumCDataSize(int max) |
void |
setMaximumTextSize(int max) |
public XMLStreamEvents.Event event
protected int maxTextSize
protected int maxCDataSize
protected ICharacterStream.Readable.Buffered stream
public final ICharacterStream.Readable.Buffered getCharacterStream()
public int getMaximumTextSize()
public void setMaximumTextSize(int max)
public int getMaximumCDataSize()
public void setMaximumCDataSize(int max)
public UnprotectedStringBuffer getNamespaceURI(CharSequence namespacePrefix)
public XMLStreamEvents.Attribute getAttributeByFullName(CharSequence name)
public XMLStreamEvents.Attribute getAttributeByLocalName(CharSequence name)
public XMLStreamEvents.Attribute getAttributeWithPrefix(CharSequence prefix, CharSequence name)
public XMLStreamEvents.Attribute getAttributeWithNamespaceURI(CharSequence uri, CharSequence name)
public UnprotectedStringBuffer getAttributeValueByFullName(CharSequence name)
public UnprotectedStringBuffer getAttributeValueByLocalName(CharSequence name)
public UnprotectedStringBuffer getAttributeValueWithPrefix(CharSequence prefix, CharSequence name)
public UnprotectedStringBuffer getAttributeValueWithNamespaceURI(CharSequence uri, CharSequence name)
public XMLStreamEvents.Attribute removeAttributeByFullName(CharSequence name)
public XMLStreamEvents.Attribute removeAttributeByLocalName(CharSequence name)
public XMLStreamEvents.Attribute removeAttributeWithPrefix(CharSequence prefix, CharSequence name)
public XMLStreamEvents.Attribute removeAttributeWithNamespaceURI(CharSequence uri, CharSequence name)
protected void reset()
protected void onStartElement(int i)
protected void readNamespaces(XMLStreamEvents.ElementContext ctx)
public static boolean isSpaceChar(char c)
public static boolean isNameStartChar(char c)
public static boolean isNameChar(char c)
Copyright © 2019. All rights reserved.