Java org.dom4j.io SAXReader fields, constructors, methods, implement or subclass

Example usage for Java org.dom4j.io SAXReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.dom4j.io SAXReader.

The text is from its open source code.

Subclass

org.dom4j.io.SAXReader has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidaddHandler(String path, ElementHandler handler)
Adds the ElementHandler to be called when the specified path is encounted.
DocumentFactorygetDocumentFactory()
DOCUMENT ME!
XMLReadergetXMLReader()
DOCUMENT ME!
Documentread(File file)

Reads a Document from the given File

Documentread(URL url)

Reads a Document from the given URL using SAX

Documentread(String systemId)

Reads a Document from the given URL or filename using SAX.

Documentread(InputStream in)

Reads a Document from the given stream using SAX

Documentread(Reader reader)
Reads a Document from the given Reader using SAX
Documentread(InputSource in)

Reads a Document from the given InputSource using SAX

Documentread(InputStream in, String systemId)

Reads a Document from the given stream using SAX

Documentread(Reader reader, String systemId)

Reads a Document from the given Reader using SAX

voidresetHandlers()
This method clears out all the existing handlers and default handler setting things back as if no handler existed.
voidsetDefaultHandler(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.
voidsetDocumentFactory(DocumentFactory documentFactory)

This sets the DocumentFactory used to create new documents.

voidsetEncoding(String encoding)
Sets encoding used for InputSource (null means system default encoding)
voidsetEntityResolver(EntityResolver entityResolver)
Sets the entity resolver used to resolve entities.
voidsetErrorHandler(ErrorHandler errorHandler)
Sets the ErrorHandler used by the SAX XMLReader.
voidsetFeature(String name, boolean value)
Sets a SAX feature on the underlying SAX parser.
voidsetIgnoreComments(boolean ignoreComments)
Sets whether we should ignore comments or not.
voidsetIncludeExternalDTDDeclarations(boolean include)
Sets whether DTD external declarations should be expanded into the DocumentType object or not.
voidsetIncludeInternalDTDDeclarations(boolean include)
Sets whether internal DTD declarations should be expanded into the DocumentType object or not.
voidsetMergeAdjacentText(boolean mergeAdjacentText)
Sets whether or not adjacent text nodes should be merged together when parsing.
voidsetProperty(String name, Object value)
Allows a SAX property to be set on the underlying SAX parser.
voidsetStripWhitespaceText(boolean stripWhitespaceText)
Sets whether whitespace between element start and end tags should be ignored.
voidsetValidation(boolean validation)
Sets the validation mode.
voidsetXMLFilter(XMLFilter filter)
Sets the SAX filter to be used when filtering SAX events
voidsetXMLReader(XMLReader reader)
Sets the XMLReader used to parse SAX events
voidsetXMLReaderClassName(String xmlReaderClassName)
Sets the class name of the XMLReader to be used to parse SAX events.