|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentSerializer
Interface for classes that support reading and writing XML documents.
Method Summary | |
---|---|
Document |
readDocument(InputStream in)
Reads an XML document from a given stream. |
Document |
readDocument(Reader reader)
Reads an XML document from a given reader. |
Document |
writeDocument(Document document,
OutputStream out)
Writes an XML document to a given stream . |
void |
writeDocument(Document document,
Writer writer)
Writes an XML document to a given writer. |
Method Detail |
---|
Document readDocument(Reader reader) throws DocumentException, IOException
readDocument(InputStream)
) to ensure
that encoding issues are handled correctly.
reader
- reader containing the text to parse; not closed by this
method
DocumentException
- if an error occurs during parsing
IOException
- if an I/O error occurrsDocument readDocument(InputStream in) throws DocumentException, IOException
in
- stream containing the text to parse; not closed by this method
DocumentException
- if an error occurs during parsing
IOException
- if an I/O error occurrsvoid writeDocument(Document document, Writer writer) throws IOException
writeDocument(Document, OutputStream)
)
to ensure that encoding issues are handled correctly.
document
- the document to writewriter
- the writer to write the document text to; flushed
but not closed by this method
IOException
- if an I/O error occurrsDocument writeDocument(Document document, OutputStream out) throws IOException
document
- the document to writeout
- the stream to write the document text to; flushed
but not closed by this method
IOException
- if an I/O error occurs during writing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |