|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDocumentXMLSerializer
This class reprents a serializer of Document objects to XML output.
The output can eiter be a Writer, OutputStream, File or String by using one of the overloaded serialize methods.
| Method Summary | |
|---|---|
Charset |
getEncoding()
Determines the encoding character set. |
boolean |
isIndenting()
Determines if indenting will be used when formatting the output. |
boolean |
isNamespaces()
Determines if namespaces are supported. |
boolean |
isPreserveSpace()
Determines if space is preserved. |
String |
serialize(Document document)
Serialized the document to a string. |
void |
serialize(File file,
Document document)
Serializes the document to a file. |
void |
serialize(OutputStream out,
Document document)
Serializes the document to an output stream. |
void |
serialize(Writer writer,
Document document)
Serialize the document to a writer. |
void |
setEncoding(Charset encoding)
Sets the encoding character set. |
void |
setIndenting(boolean indenting)
Setting this to true will cause indenting to be used when formatting the output. |
void |
setNamespaces(boolean namespaces)
Sets the namespace support |
void |
setPreserveSpace(boolean preserveSpace)
Setting this to true will make space be preserved. |
| Method Detail |
|---|
Charset getEncoding()
void setEncoding(Charset encoding)
encoding - character setboolean isPreserveSpace()
void setPreserveSpace(boolean preserveSpace)
preserveSpace - preserve space valueboolean isNamespaces()
void setNamespaces(boolean namespaces)
namespaces - new namespaces support valueboolean isIndenting()
void setIndenting(boolean indenting)
indenting - indenting value
void serialize(Writer writer,
Document document)
throws IOException
writer - writerdocument - document
IOException - if an I/O error occurs
IllegalArgumentException - if any argument is null
void serialize(OutputStream out,
Document document)
throws IOException
out - output streamdocument - document
IOException - if an I/O error occurs
IllegalArgumentException - if any argument is null
void serialize(File file,
Document document)
throws IOException
file - filedocument - document
IOException - if an I/O error occurs
IllegalArgumentException - if any argument is null
String serialize(Document document)
throws IOException
document - document
IOException - if an I/O error occurs
IllegalArgumentException - if any argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||