| Package | Description |
|---|---|
| javax.xml.parsers |
Provides classes allowing the processing of XML documents.
|
| org.xml.sax |
SAX 2.0 r2 prerelease interfaces
|
| org.xml.sax.ext |
SAX2-ext: SAX2 Extension Handlers 1.0
|
| org.xml.sax.helpers |
SAX 2.0 r2 prerelease helper interfaces
|
| Modifier and Type | Method and Description |
|---|---|
abstract Parser |
SAXParser.getParser()
Returns the SAX parser that is encapsultated by the
implementation of this class.
|
abstract XMLReader |
SAXParser.getXMLReader()
Returns the
XMLReader that is encapsulated by the
implementation of this class. |
abstract SAXParser |
SAXParserFactory.newSAXParser()
Creates a new instance of a SAXParser using the currently
configured factory parameters.
|
Document |
DocumentBuilder.parse(java.io.File f)
Parse the content of the given file as an XML document
and return a new DOM
Document object. |
void |
SAXParser.parse(java.io.File f,
DefaultHandler dh)
Parse the content of the file specified as XML using the
specified
DefaultHandler. |
void |
SAXParser.parse(java.io.File f,
HandlerBase hb)
Parse the content of the file specified as XML using the
specified
HandlerBase. |
abstract Document |
DocumentBuilder.parse(InputSource is)
Parse the content of the given input source as an XML document
and return a new DOM
Document object. |
void |
SAXParser.parse(InputSource is,
DefaultHandler dh)
Parse the content given
InputSource
as XML using the specified
DefaultHandler. |
void |
SAXParser.parse(InputSource is,
HandlerBase hb)
Parse the content given
InputSource
as XML using the specified
HandlerBase. |
Document |
DocumentBuilder.parse(java.io.InputStream is)
Parse the content of the given
InputStream as an XML
document and return a new DOM Document object. |
void |
SAXParser.parse(java.io.InputStream is,
DefaultHandler dh)
Parse the content of the given
InputStream
instance as XML using the specified
DefaultHandler. |
void |
SAXParser.parse(java.io.InputStream is,
DefaultHandler dh,
java.lang.String systemId)
Parse the content of the given
InputStream
instance as XML using the specified
DefaultHandler. |
void |
SAXParser.parse(java.io.InputStream is,
HandlerBase hb)
Parse the content of the given
InputStream
instance as XML using the specified HandlerBase. |
void |
SAXParser.parse(java.io.InputStream is,
HandlerBase hb,
java.lang.String systemId)
Parse the content of the given
InputStream
instance as XML using the specified HandlerBase. |
Document |
DocumentBuilder.parse(java.io.InputStream is,
java.lang.String systemId)
Parse the content of the given
InputStream as an XML
document and return a new DOM Document object. |
Document |
DocumentBuilder.parse(java.lang.String uri)
Parse the content of the given URI as an XML document
and return a new DOM
Document object. |
void |
SAXParser.parse(java.lang.String uri,
DefaultHandler dh)
Parse the content described by the giving Uniform Resource
Identifier (URI) as XML using the specified
DefaultHandler. |
void |
SAXParser.parse(java.lang.String uri,
HandlerBase hb)
Parse the content described by the giving Uniform Resource
Identifier (URI) as XML using the specified
HandlerBase. |
| Modifier and Type | Class and Description |
|---|---|
class |
SAXNotRecognizedException
Exception class for an unrecognized identifier.
|
class |
SAXNotSupportedException
Exception class for an unsupported operation.
|
class |
SAXParseException
Encapsulate an XML parse error or warning.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HandlerBase.characters(char[] ch,
int start,
int length)
Deprecated.
Receive notification of character data inside an element.
|
void |
DocumentHandler.characters(char[] ch,
int start,
int length)
Deprecated.
Receive notification of character data.
|
void |
ContentHandler.characters(char[] ch,
int start,
int length)
Receive notification of character data.
|
void |
HandlerBase.endDocument()
Deprecated.
Receive notification of the end of the document.
|
void |
DocumentHandler.endDocument()
Deprecated.
Receive notification of the end of a document.
|
void |
ContentHandler.endDocument()
Receive notification of the end of a document.
|
void |
HandlerBase.endElement(java.lang.String name)
Deprecated.
Receive notification of the end of an element.
|
void |
DocumentHandler.endElement(java.lang.String name)
Deprecated.
Receive notification of the end of an element.
|
void |
ContentHandler.endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element.
|
void |
ContentHandler.endPrefixMapping(java.lang.String prefix)
End the scope of a prefix-URI mapping.
|
void |
HandlerBase.error(SAXParseException e)
Deprecated.
Receive notification of a recoverable parser error.
|
void |
ErrorHandler.error(SAXParseException exception)
Receive notification of a recoverable error.
|
void |
HandlerBase.fatalError(SAXParseException e)
Deprecated.
Report a fatal XML parsing error.
|
void |
ErrorHandler.fatalError(SAXParseException exception)
Receive notification of a non-recoverable error.
|
void |
HandlerBase.ignorableWhitespace(char[] ch,
int start,
int length)
Deprecated.
Receive notification of ignorable whitespace in element content.
|
void |
DocumentHandler.ignorableWhitespace(char[] ch,
int start,
int length)
Deprecated.
Receive notification of ignorable whitespace in element content.
|
void |
ContentHandler.ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content.
|
void |
DTDHandler.notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Receive notification of a notation declaration event.
|
void |
XMLReader.parse(InputSource input)
Parse an XML document.
|
void |
Parser.parse(InputSource source)
Deprecated.
Parse an XML document.
|
void |
XMLReader.parse(java.lang.String systemId)
Parse an XML document from a system identifier (URI).
|
void |
Parser.parse(java.lang.String systemId)
Deprecated.
Parse an XML document from a system identifier (URI).
|
void |
HandlerBase.processingInstruction(java.lang.String target,
java.lang.String data)
Deprecated.
Receive notification of a processing instruction.
|
void |
DocumentHandler.processingInstruction(java.lang.String target,
java.lang.String data)
Deprecated.
Receive notification of a processing instruction.
|
void |
ContentHandler.processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification of a processing instruction.
|
InputSource |
HandlerBase.resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Deprecated.
Resolve an external entity.
|
InputSource |
EntityResolver.resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Allow the application to resolve external entities.
|
void |
Parser.setLocale(java.util.Locale locale)
Deprecated.
Allow an application to request a locale for errors and warnings.
|
void |
ContentHandler.skippedEntity(java.lang.String name)
Receive notification of a skipped entity.
|
void |
HandlerBase.startDocument()
Deprecated.
Receive notification of the beginning of the document.
|
void |
DocumentHandler.startDocument()
Deprecated.
Receive notification of the beginning of a document.
|
void |
ContentHandler.startDocument()
Receive notification of the beginning of a document.
|
void |
HandlerBase.startElement(java.lang.String name,
AttributeList attributes)
Deprecated.
Receive notification of the start of an element.
|
void |
DocumentHandler.startElement(java.lang.String name,
AttributeList atts)
Deprecated.
Receive notification of the beginning of an element.
|
void |
ContentHandler.startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes atts)
Receive notification of the beginning of an element.
|
void |
ContentHandler.startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Begin the scope of a prefix-URI Namespace mapping.
|
void |
DTDHandler.unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
Receive notification of an unparsed entity declaration event.
|
void |
HandlerBase.warning(SAXParseException e)
Deprecated.
Receive notification of a parser warning.
|
void |
ErrorHandler.warning(SAXParseException exception)
Receive notification of a warning.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DeclHandler.attributeDecl(java.lang.String eName,
java.lang.String aName,
java.lang.String type,
java.lang.String valueDefault,
java.lang.String value)
Report an attribute type declaration.
|
void |
LexicalHandler.comment(char[] ch,
int start,
int length)
Report an XML comment anywhere in the document.
|
void |
DeclHandler.elementDecl(java.lang.String name,
java.lang.String model)
Report an element type declaration.
|
void |
LexicalHandler.endCDATA()
Report the end of a CDATA section.
|
void |
LexicalHandler.endDTD()
Report the end of DTD declarations.
|
void |
LexicalHandler.endEntity(java.lang.String name)
Report the end of an entity.
|
void |
DeclHandler.externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Report a parsed external entity declaration.
|
void |
DeclHandler.internalEntityDecl(java.lang.String name,
java.lang.String value)
Report an internal entity declaration.
|
void |
LexicalHandler.startCDATA()
Report the start of a CDATA section.
|
void |
LexicalHandler.startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Report the start of DTD declarations, if any.
|
void |
LexicalHandler.startEntity(java.lang.String name)
Report the beginning of some internal and external XML entities.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XMLReaderAdapter.characters(char[] ch,
int start,
int length)
Adapt a SAX2 characters event.
|
void |
XMLFilterImpl.characters(char[] ch,
int start,
int length)
Filter a character data event.
|
void |
ParserAdapter.characters(char[] ch,
int start,
int length)
Adapt a SAX1 characters event.
|
void |
DefaultHandler.characters(char[] ch,
int start,
int length)
Receive notification of character data inside an element.
|
static XMLReader |
XMLReaderFactory.createXMLReader()
Attempt to create an XML reader from a system property.
|
static XMLReader |
XMLReaderFactory.createXMLReader(java.lang.String className)
Attempt to create an XML reader from a class name.
|
void |
XMLReaderAdapter.endDocument()
End document event.
|
void |
XMLFilterImpl.endDocument()
Filter an end document event.
|
void |
ParserAdapter.endDocument()
Adapt a SAX1 end document event.
|
void |
DefaultHandler.endDocument()
Receive notification of the end of the document.
|
void |
ParserAdapter.endElement(java.lang.String qName)
Adapt a SAX1 end element event.
|
void |
XMLReaderAdapter.endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Adapt a SAX2 end element event.
|
void |
XMLFilterImpl.endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Filter an end element event.
|
void |
DefaultHandler.endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element.
|
void |
XMLFilterImpl.endPrefixMapping(java.lang.String prefix)
Filter an end Namespace prefix mapping event.
|
void |
DefaultHandler.endPrefixMapping(java.lang.String prefix)
Receive notification of the end of a Namespace mapping.
|
void |
XMLFilterImpl.error(SAXParseException e)
Filter an error event.
|
void |
DefaultHandler.error(SAXParseException e)
Receive notification of a recoverable parser error.
|
void |
XMLFilterImpl.fatalError(SAXParseException e)
Filter a fatal error event.
|
void |
DefaultHandler.fatalError(SAXParseException e)
Report a fatal XML parsing error.
|
void |
XMLReaderAdapter.ignorableWhitespace(char[] ch,
int start,
int length)
Adapt a SAX2 ignorable whitespace event.
|
void |
XMLFilterImpl.ignorableWhitespace(char[] ch,
int start,
int length)
Filter an ignorable whitespace event.
|
void |
ParserAdapter.ignorableWhitespace(char[] ch,
int start,
int length)
Adapt a SAX1 ignorable whitespace event.
|
void |
DefaultHandler.ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content.
|
void |
XMLFilterImpl.notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Filter a notation declaration event.
|
void |
DefaultHandler.notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Receive notification of a notation declaration.
|
void |
XMLReaderAdapter.parse(InputSource input)
Parse the document.
|
void |
XMLFilterImpl.parse(InputSource input)
Parse a document.
|
void |
ParserAdapter.parse(InputSource input)
Parse an XML document.
|
void |
XMLReaderAdapter.parse(java.lang.String systemId)
Parse the document.
|
void |
XMLFilterImpl.parse(java.lang.String systemId)
Parse a document.
|
void |
ParserAdapter.parse(java.lang.String systemId)
Parse an XML document.
|
void |
XMLReaderAdapter.processingInstruction(java.lang.String target,
java.lang.String data)
Adapt a SAX2 processing instruction event.
|
void |
XMLFilterImpl.processingInstruction(java.lang.String target,
java.lang.String data)
Filter a processing instruction event.
|
void |
ParserAdapter.processingInstruction(java.lang.String target,
java.lang.String data)
Adapt a SAX1 processing instruction event.
|
void |
DefaultHandler.processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification of a processing instruction.
|
InputSource |
XMLFilterImpl.resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Filter an external entity resolution.
|
InputSource |
DefaultHandler.resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve an external entity.
|
void |
XMLReaderAdapter.setLocale(java.util.Locale locale)
Set the locale for error reporting.
|
void |
XMLReaderAdapter.skippedEntity(java.lang.String name)
Adapt a SAX2 skipped entity event.
|
void |
XMLFilterImpl.skippedEntity(java.lang.String name)
Filter a skipped entity event.
|
void |
DefaultHandler.skippedEntity(java.lang.String name)
Receive notification of a skipped entity.
|
void |
XMLReaderAdapter.startDocument()
Start document event.
|
void |
XMLFilterImpl.startDocument()
Filter a start document event.
|
void |
ParserAdapter.startDocument()
Adapt a SAX1 start document event.
|
void |
DefaultHandler.startDocument()
Receive notification of the beginning of the document.
|
void |
ParserAdapter.startElement(java.lang.String qName,
AttributeList qAtts)
Adapt a SAX1 startElement event.
|
void |
XMLReaderAdapter.startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
Attributes atts)
Adapt a SAX2 start element event.
|
void |
XMLFilterImpl.startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
Attributes atts)
Filter a start element event.
|
void |
DefaultHandler.startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
Attributes attributes)
Receive notification of the start of an element.
|
void |
XMLFilterImpl.startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Filter a start Namespace prefix mapping event.
|
void |
DefaultHandler.startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Receive notification of the start of a Namespace mapping.
|
void |
XMLFilterImpl.unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
Filter an unparsed entity declaration event.
|
void |
DefaultHandler.unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
Receive notification of an unparsed entity declaration.
|
void |
XMLFilterImpl.warning(SAXParseException e)
Filter a warning event.
|
void |
DefaultHandler.warning(SAXParseException e)
Receive notification of a parser warning.
|
| Constructor and Description |
|---|
ParserAdapter()
Construct a new parser adapter.
|
XMLReaderAdapter()
Create a new adapter.
|