| Package | Description |
|---|---|
| com.hp.hpl.sparta |
| Modifier and Type | Class and Description |
|---|---|
class |
EncodingMismatchException
Thrown when declared encoding does not match assumed encoding.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ParseHandler.characters(char[] buf,
int offset,
int len) |
void |
DefaultParseHandler.characters(char[] buf,
int off,
int len) |
void |
ParseHandler.endDocument() |
void |
DefaultParseHandler.endDocument() |
void |
ParseHandler.endElement(Element element) |
void |
DefaultParseHandler.endElement(Element element) |
Enumeration |
Document.Index.get(String attrValue) |
static Document |
Parser.parse(byte[] xml)
Parse XML to DOM, figuring out the encoding using the first few characters and possibly
an encoding declaration on the first line of the XML.
|
static void |
Parser.parse(byte[] xml,
ParseHandler ph)
SAX parsing of XML encoded in a byte array.
|
static Document |
Parser.parse(char[] xml)
DOM parsing of XML in a character array (this is the fastest parse method).
|
static void |
Parser.parse(char[] xml,
ParseHandler ph)
SAX parsing of XML in a character array.
|
static Document |
Parser.parse(String xml)
DOM parsing of XML in a String.
|
static Document |
Parser.parse(String systemId,
InputStream istream)
DOM parsing of XML encoded in a byte stream, using a default log.
|
static void |
Parser.parse(String systemId,
InputStream istream,
ParseHandler ph)
SAX parsing of XML encoded in a byte stream.
|
static Document |
Parser.parse(String systemId,
InputStream istream,
ParseLog log)
DOM parsing of XML encoded in a byte stream.
|
static void |
Parser.parse(String systemId,
InputStream istream,
ParseLog log,
ParseHandler ph)
SAX parsing of XML encoded in a byte stream, using default log.
|
static Document |
Parser.parse(String systemId,
InputStream istream,
ParseLog log,
String guessedEncoding)
DOM parsing of XML encoded in a character stream, specifying the Unicode encoding.
|
static void |
Parser.parse(String systemId,
InputStream istream,
ParseLog log,
String guessedEncoding,
ParseHandler ph)
SAX parsing of XML encoded in a byte stream, specifying the Unicode encoding.
|
static void |
Parser.parse(String xml,
ParseHandler ph)
SAX parsing of XML in a string.
|
static Document |
Parser.parse(String systemId,
Reader reader)
DOM parsing of XML in a character stream, using a default log.
|
static void |
Parser.parse(String systemId,
Reader reader,
ParseHandler ph)
SAX parsing of XML in character stream, using default log.
|
static Document |
Parser.parse(String systemId,
Reader reader,
ParseLog log)
DOM parsing of XML in a character stream.
|
static void |
Parser.parse(String systemId,
Reader reader,
ParseLog log,
ParseHandler ph)
SAX parsing of XML in character stream.
|
static Document |
Parser.parse(String systemId,
Reader reader,
ParseLog log,
String encoding)
DOM parsing of XML in a character stream, specifying the Unicode encoding.
|
static void |
Parser.parse(String systemId,
Reader reader,
ParseLog log,
String encoding,
ParseHandler ph)
SAX parsing of XML encoded in a character stream, specifying the Unicode encoding.
|
int |
Document.Index.size() |
void |
ParseHandler.startDocument() |
void |
DefaultParseHandler.startDocument() |
void |
ParseHandler.startElement(Element element) |
void |
DefaultParseHandler.startElement(Element element) |
boolean |
Element.xpathEnsure(String xpath)
Make sure this XPath exists, creating nodes if necessary,
returning true if any nodes created.
|
boolean |
Document.xpathEnsure(String xpath)
Just like Element.xpathEnsure, but also handles case of no documentElement.
|
Document.Index |
Document.xpathGetIndex(String xpath)
For faster lookup by XPath return (creating if necessary) an
index.
|
abstract Element |
Node.xpathSelectElement(String xpath)
Select the first element that matches the relative XPath
expression with respect to this node, or null if
there is no match.
|
Element |
Element.xpathSelectElement(String xpath)
Select the first element that matches the relative XPath
expression with respect to this element, or null if
there is no match.
|
Element |
Document.xpathSelectElement(String xpath)
Select the first element that matches the absolute XPath
expression in this document, or null if
there is no match.
|
abstract Enumeration |
Node.xpathSelectElements(String xpath)
Select all the elements that match the relative XPath
expression with respect to this node.
|
Enumeration |
Element.xpathSelectElements(String xpath)
Select all the elements that match the relative XPath
expression with respect to this element.
|
Enumeration |
Document.xpathSelectElements(String xpath)
Select all the elements that match the absolute XPath
expression in this document.
|
abstract String |
Node.xpathSelectString(String xpath)
Select the first element that matches the relative XPath
expression with respect to this node, or null if
there is no match.
|
String |
Element.xpathSelectString(String xpath)
Select the first element that matches the relative XPath
expression with respect to this element, or null if
there is no match.
|
String |
Document.xpathSelectString(String xpath)
Select the first element that matches the absolute XPath
expression in this document, or null if
there is no match.
|
abstract Enumeration |
Node.xpathSelectStrings(String xpath)
Select all the strings that match the relative XPath
expression with respect to this node.
|
Enumeration |
Element.xpathSelectStrings(String xpath)
Select all the strings that match the relative XPath
expression with respect to this element.
|
Enumeration |
Document.xpathSelectStrings(String xpath)
Select all the strings that match the absolute XPath
expression in this document.
|
boolean |
Node.xpathSetStrings(String xpath,
String value)
For an xpath expression of the form "xpathPrefix/@attrName" set the
attribute "attrName" to attrValue on all elements that match
"XpathPrefix" which is an arbitrary xpath expression matching elements,
or for an xpath expression of the form "xpathPrefixe/text()" set the
text of all matching text nodes.
|
Copyright © 2016. All Rights Reserved.