| java.lang.Object com.caucho.xml2.AbstractParser
All known Subclasses: com.caucho.xml2.XmlParser,
Method Summary | |
void | clear() | public ContentHandler | getContentHandler() | public DTDHandler | getDTDHandler() | public String | getDefaultEncoding() Gets the default encoding if none is specified. | public boolean | getEntitiesAsText() | public EntityResolver | getEntityResolver() Sets the callback object finding files from system ids. | public ErrorHandler | getErrorHandler() | public boolean | getFeature(String name) | public Object | getProperty(String name) | public boolean | getSkipComments() | void | init() | public boolean | isCoalescing() Returns true if text and cdata nodes will be combined. | public boolean | isNamespaceAware() Returns true if the parsing is namespace aware. | public boolean | isNamespacePrefixes() | public boolean | isSAXNamespaces() | public boolean | isValidating() | protected InputStream | openSource(InputSource source) | public InputStream | openStream(String systemId, String publicId) Looks up an input stream from the system id. | public InputStream | openStream(String systemId, String publicId, EntityResolver entityResolver) Looks up an input stream from the system id. | protected InputStream | openStream(String systemId, String publicId, EntityResolver entityResolver, boolean isTop) Looks up an input stream from the system id. | public InputStream | openTopStream(String systemId, String publicId) Looks up an input stream from the system id. | public void | parse(InputSource source) | public void | parse(InputStream is) | public void | parse(InputStream is, String systemId) | public void | parse(String systemId) | public void | parse(Path path) | public Document | parseDocument(InputSource source) | public Document | parseDocument(String systemId) Parses a document from system path. | public Document | parseDocument(Path path) | public Document | parseDocument(InputStream is) | public Document | parseDocument(InputStream is, String systemId) Parses an input stream into a DOM document
Parameters: is - the input stream containing the XML Parameters: systemId - the URL of the stream. | public void | parseDocument(QDocument doc, InputStream is, String systemId) | public Document | parseDocumentString(String string) | public void | parseImpl(InputStream is, String systemId) | abstract Document | parseInt(ReadStream is) Parse the document from a read stream.
Parameters: is - read stream to parse from. | public void | parseString(String string) SAX parsing from a string. | public void | setCoalescing(boolean isCoalescing) Set true if text and cdata nodes should be combined. | public void | setConfig(DocumentBuilderFactory factory) Sets the configuration for a document builder. | public void | setContentHandler(ContentHandler handler) | public void | setDTDHandler(DTDHandler handler) | public void | setDefaultEncoding(String encoding) Sets the default encoding if none is specified. | public void | setDocumentHandler(DocumentHandler handler) Configures the document handler callback. | public void | setEntitiesAsText(boolean entitiesAsText) | public void | setEntityResolver(EntityResolver resolver) Sets the callback object to find files. | public void | setErrorHandler(ErrorHandler handler) | public void | setExpandEntities(boolean expandEntities) | public void | setFeature(String name, boolean value) | public void | setLexicalHandler(LexicalHandler handler) | public void | setLocale(Locale locale) | public void | setNamespaceAware(boolean isNamespaceAware) Set true if the parsing is namespace aware. | public void | setNamespacePrefixes(boolean isNamespaces) | public void | setOwner(QDocument doc) Sets the owner. | public void | setProperty(String name, Object obj) | public void | setSAXNamespaces(boolean isNamespaces) | public void | setSkipComments(boolean skipComments) Set to true if comments should be skipped. | public void | setSkipWhitespace(boolean skipWhitespace) Set to true if ignorable-whitespace should be skipped. | public void | setValidating(boolean isValidating) |
_entitiesAsText | boolean _entitiesAsText(Code) | | |
_expandEntities | boolean _expandEntities(Code) | | |
_isCoalescing | boolean _isCoalescing(Code) | | |
_isNamespaceAware | boolean _isNamespaceAware(Code) | | |
_isNamespacePrefixes | boolean _isNamespacePrefixes(Code) | | |
_isSAXNamespaces | boolean _isSAXNamespaces(Code) | | |
_isStaticEncoding | boolean _isStaticEncoding(Code) | | |
_isValidating | boolean _isValidating(Code) | | |
_isXmlnsAttribute | boolean _isXmlnsAttribute(Code) | | |
_isXmlnsPrefix | boolean _isXmlnsPrefix(Code) | | |
_optionalTags | boolean _optionalTags(Code) | | |
_searchPath | Path _searchPath(Code) | | |
_singleTopElement | boolean _singleTopElement(Code) | | |
_skipComments | boolean _skipComments(Code) | | |
_skipWhitespace | boolean _skipWhitespace(Code) | | |
_strictAttributes | boolean _strictAttributes(Code) | | |
_strictCharacters | boolean _strictCharacters(Code) | | |
_strictComments | boolean _strictComments(Code) | | |
_strictXml | boolean _strictXml(Code) | | |
AbstractParser | AbstractParser()(Code) | | Creates a new parser with the XmlPolicy and a new dtd.
|
AbstractParser | AbstractParser(QDocumentType dtd)(Code) | | Creates a new parser with a given policy and dtd.
Parameters: policy - the parsing policy, handling optional tags. Parameters: dtd - the parser's dtd. |
getDefaultEncoding | public String getDefaultEncoding()(Code) | | Gets the default encoding if none is specified.
|
getEntitiesAsText | public boolean getEntitiesAsText()(Code) | | |
getEntityResolver | public EntityResolver getEntityResolver()(Code) | | Sets the callback object finding files from system ids.
the resolver to find files. |
getSkipComments | public boolean getSkipComments()(Code) | | |
isCoalescing | public boolean isCoalescing()(Code) | | Returns true if text and cdata nodes will be combined.
|
isNamespaceAware | public boolean isNamespaceAware()(Code) | | Returns true if the parsing is namespace aware.
|
isNamespacePrefixes | public boolean isNamespacePrefixes()(Code) | | Returns true if the parsing uses namespace prefixes
|
isSAXNamespaces | public boolean isSAXNamespaces()(Code) | | Returns true if the parsing uses sax namespaces
|
isValidating | public boolean isValidating()(Code) | | Returns true if the XML should be validated
|
parseDocument | public Document parseDocument(Path path) throws IOException, SAXException(Code) | | Parses a document from a VFS path
Parameters: path - the VFS path containing the XML document. |
parseDocument | public Document parseDocument(InputStream is, String systemId) throws IOException, SAXException(Code) | | Parses an input stream into a DOM document
Parameters: is - the input stream containing the XML Parameters: systemId - the URL of the stream. the parsed document. |
parseInt | abstract Document parseInt(ReadStream is) throws IOException, SAXException(Code) | | Parse the document from a read stream.
Parameters: is - read stream to parse from. The parsed document. |
setCoalescing | public void setCoalescing(boolean isCoalescing)(Code) | | Set true if text and cdata nodes should be combined.
|
setDefaultEncoding | public void setDefaultEncoding(String encoding)(Code) | | Sets the default encoding if none is specified.
Parameters: encoding - the default encoding |
setDocumentHandler | public void setDocumentHandler(DocumentHandler handler)(Code) | | Configures the document handler callback.
Parameters: handler - the new document handler. |
setEntitiesAsText | public void setEntitiesAsText(boolean entitiesAsText)(Code) | | |
setEntityResolver | public void setEntityResolver(EntityResolver resolver)(Code) | | Sets the callback object to find files.
Parameters: resolver - the object to find files. |
setExpandEntities | public void setExpandEntities(boolean expandEntities)(Code) | | |
setNamespaceAware | public void setNamespaceAware(boolean isNamespaceAware)(Code) | | Set true if the parsing is namespace aware.
|
setNamespacePrefixes | public void setNamespacePrefixes(boolean isNamespaces)(Code) | | Set true if the parsing uses sax namespaces
|
setSAXNamespaces | public void setSAXNamespaces(boolean isNamespaces)(Code) | | Set true if the parsing uses sax namespaces
|
setSkipComments | public void setSkipComments(boolean skipComments)(Code) | | Set to true if comments should be skipped. If false events will be
generated for the comments.
|
setSkipWhitespace | public void setSkipWhitespace(boolean skipWhitespace)(Code) | | Set to true if ignorable-whitespace should be skipped.
|
setValidating | public void setValidating(boolean isValidating)(Code) | | Set true if the XML should be validated
|
|
|