@OpenApiAll
public class StAXSAXParser
extends java.lang.Object
Constructor and Description |
---|
StAXSAXParser() |
Modifier and Type | Method and Description |
---|---|
void |
parse(org.xml.sax.InputSource is,
org.xml.sax.helpers.DefaultHandler dh)
Parse the content given
InputSource as XML using the specified
DefaultHandler . |
void |
parse(java.io.InputStream stream,
org.xml.sax.helpers.DefaultHandler dh)
Parse the content given InputStream as XML using the specified
DefaultHandler . |
void |
parse(java.io.Reader reader,
org.xml.sax.helpers.DefaultHandler dh)
Parse the content given Reader as XML using the specified
DefaultHandler . |
void |
setNamespaceAware(boolean awareness)
Specifies that the parser produced by this code will provide support for XML namespaces.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Allows the user to set specific feature/property on the underlying implementation.
|
void |
setValidating(boolean validating)
Specifies that the parser produced by this code will validate documents as they are parsed.
|
public void setNamespaceAware(boolean awareness)
false
.awareness
- true if the parser produced by this code will provide support for XML namespaces; false
otherwise.public void setValidating(boolean validating)
false
.validating
- true if the parser produced by this code will validate documents as they are parsed; false
otherwise.public void setProperty(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException
name
- The name of the property (may not be null)value
- The value of the propertyjava.lang.IllegalArgumentException
- if the property is not supportedpublic void parse(java.io.Reader reader, org.xml.sax.helpers.DefaultHandler dh) throws org.xml.sax.SAXException, java.io.IOException
DefaultHandler
.reader
- The Reader containing the content to be parsed.dh
- The SAX DefaultHandler to use.java.lang.IllegalArgumentException
- If the InputSource
object is null
.java.io.IOException
- If any IO errors occur.org.xml.sax.SAXException
- If any SAX errors occur during processing.DocumentHandler
public void parse(java.io.InputStream stream, org.xml.sax.helpers.DefaultHandler dh) throws org.xml.sax.SAXException, java.io.IOException
DefaultHandler
.stream
- The InputStream containing the content to be parsed.dh
- The SAX DefaultHandler to use.java.lang.IllegalArgumentException
- If the InputSource
object is null
.java.io.IOException
- If any IO errors occur.org.xml.sax.SAXException
- If any SAX errors occur during processing.DocumentHandler
public void parse(org.xml.sax.InputSource is, org.xml.sax.helpers.DefaultHandler dh) throws org.xml.sax.SAXException, java.io.IOException
InputSource
as XML using the specified
DefaultHandler
.is
- The InputSource containing the content to be parsed.dh
- The SAX DefaultHandler to use.java.lang.IllegalArgumentException
- If the InputSource
object is null
.java.io.IOException
- If any IO errors occur.org.xml.sax.SAXException
- If any SAX errors occur during processing.DocumentHandler
Copyright © 2010 - No Magic Asia