Example usage for Java org.dom4j.io SAXReader fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addHandler(String path, ElementHandler handler) Adds the ElementHandler to be called when the specified path is encounted. |
DocumentFactory | getDocumentFactory() DOCUMENT ME! |
XMLReader | getXMLReader() DOCUMENT ME! |
Document | read(File file) Reads a Document from the given |
Document | read(URL url) Reads a Document from the given |
Document | read(String systemId) Reads a Document from the given URL or filename using SAX. |
Document | read(InputStream in) Reads a Document from the given stream using SAX |
Document | read(Reader reader) Reads a Document from the given Reader using SAX |
Document | read(InputSource in) Reads a Document from the given |
Document | read(InputStream in, String systemId) Reads a Document from the given stream using SAX |
Document | read(Reader reader, String systemId) Reads a Document from the given |
void | resetHandlers() This method clears out all the existing handlers and default handler setting things back as if no handler existed. |
void | setDefaultHandler(ElementHandler handler) When multiple ElementHandler instances have been registered, this will set a default ElementHandler to be called for any path which does NOT have a handler registered. |
void | setDocumentFactory(DocumentFactory documentFactory) This sets the |
void | setEncoding(String encoding) Sets encoding used for InputSource (null means system default encoding) |
void | setEntityResolver(EntityResolver entityResolver) Sets the entity resolver used to resolve entities. |
void | setErrorHandler(ErrorHandler errorHandler) Sets the ErrorHandler used by the SAX XMLReader . |
void | setFeature(String name, boolean value) Sets a SAX feature on the underlying SAX parser. |
void | setIgnoreComments(boolean ignoreComments) Sets whether we should ignore comments or not. |
void | setIncludeExternalDTDDeclarations(boolean include) Sets whether DTD external declarations should be expanded into the DocumentType object or not. |
void | setIncludeInternalDTDDeclarations(boolean include) Sets whether internal DTD declarations should be expanded into the DocumentType object or not. |
void | setMergeAdjacentText(boolean mergeAdjacentText) Sets whether or not adjacent text nodes should be merged together when parsing. |
void | setProperty(String name, Object value) Allows a SAX property to be set on the underlying SAX parser. |
void | setStripWhitespaceText(boolean stripWhitespaceText) Sets whether whitespace between element start and end tags should be ignored. |
void | setValidation(boolean validation) Sets the validation mode. |
void | setXMLFilter(XMLFilter filter) Sets the SAX filter to be used when filtering SAX events |
void | setXMLReader(XMLReader reader) Sets the XMLReader used to parse SAX events |
void | setXMLReaderClassName(String xmlReaderClassName) Sets the class name of the XMLReader to be used to parse SAX events. |