org.sbml.jsbml.util
public interface SAX2Parser
Modifier and Type | Method and Description |
---|---|
void |
parse(java.io.InputStream byteStream,
org.xml.sax.helpers.DefaultHandler handler,
boolean namespaceAware)
Parses the content of a byte stream as XML, using a nonvalidating
parser and the specified SAX2 default event handler.
|
void |
parse(java.io.InputStream byteStream,
org.xml.sax.helpers.DefaultHandler handler,
java.lang.Object[] schemas)
Parses the content of a byte stream as XML, using a validating
parser and the specified SAX2 default event handler.
|
void |
parse(java.io.Reader characterStream,
org.xml.sax.helpers.DefaultHandler handler,
boolean namespaceAware)
Parses the content of a character stream as XML, using a
nonvalidating parser and the specified SAX2 default event handler.
|
void |
parse(java.io.Reader characterStream,
org.xml.sax.helpers.DefaultHandler handler,
java.lang.Object[] schemas)
Parses the content of a character stream as XML, using a
validating parser and the specified SAX2 default event handler.
|
void parse(java.io.InputStream byteStream, org.xml.sax.helpers.DefaultHandler handler, boolean namespaceAware)
byteStream
- The byte stream which content has to be parsed as XML.handler
- The SAX2 default event handler to use for parsing
byteStream
.namespaceAware
- A flag to indicate whether the parser should know about
namespaces or not.void parse(java.io.InputStream byteStream, org.xml.sax.helpers.DefaultHandler handler, java.lang.Object[] schemas)
byteStream
- The byte stream which content has to be parsed as XML.handler
- The SAX2 default event handler to use for parsing
byteStream
.schemas
- An optional array of either java.io.File
instances containing the abstract pathnames, or of
java.io.String
instances containing the URIs,
pointing to the schemas to use in the validation process. If
set to null
, the schemas defined in the data set
will be used. If set to null
and no schemas are
found in the data set, an exception is most likely to be
thrown by the underlying implementation.void parse(java.io.Reader characterStream, org.xml.sax.helpers.DefaultHandler handler, boolean namespaceAware)
characterStream
- The character stream which content has to be parsed as XML.handler
- The SAX2 default event handler to use for parsing
characterStream
.namespaceAware
- A flag to indicate whether the parser should know about
namespaces or not.void parse(java.io.Reader characterStream, org.xml.sax.helpers.DefaultHandler handler, java.lang.Object[] schemas)
characterStream
- The character stream which content has to be parsed as XML.handler
- The SAX2 default event handler to use for parsing
characterStream
.schemas
- An optional array of either java.io.File
instances containing the abstract pathnames, or of
java.io.String
instances containing the URIs,
pointing to the schemas to use in the validation process. If
set to null
, the schemas defined in the data set
will be used. If set to null
and no schemas are
found in the data set, an exception is most likely to be
thrown by the underlying implementation.