|
Nux 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nux.xom.pool.DocumentFactory
public class DocumentFactory
Creates and returns new Document
objects using flexible
parametrization (thread-safe).
This implementation is thread-safe.
Builder
Constructor Summary | |
---|---|
DocumentFactory()
Creates a factory instance. |
Method Summary | |
---|---|
Document |
createDocument(File input)
Creates and returns a new document for the given input file. |
Document |
createDocument(InputStream input,
URI baseURI)
Creates and returns a new document for the given input stream and base URI. |
DocumentFactory |
getBinaryXMLFactory()
Returns a factory that reads binary XML files using BinaryXMLCodec . |
protected Builder |
newBuilder()
Overridable callback that returns a Builder for XML parsing; This default implementation returns a non-validating Builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentFactory()
Method Detail |
---|
public Document createDocument(File input) throws ParsingException, IOException
input
- the file to read from
IOException
- if an I/O error occurs while reading from the stream
ParsingException
- if an XML parsing error occurspublic Document createDocument(InputStream input, URI baseURI) throws ParsingException, IOException
At least one of the parameters input
and
baseURI
must not be null
.
input
- the stream to read from (may be null
)baseURI
- the base URI of the document (may be null
)
IOException
- if an I/O error occurs while reading from the stream
ParsingException
- if an XML parsing error occursprotected Builder newBuilder()
public DocumentFactory getBinaryXMLFactory()
BinaryXMLCodec
.
|
Nux 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |