| |
|
| java.lang.Object org.objectweb.jonas_lib.xml.XMLSerializer
XMLSerializer | public class XMLSerializer (Code) | | Serialize a given DOM Document.
Handle namespaces nicely.
author: Guillaume Sauthier |
XMLSerializer | public XMLSerializer(Document doc)(Code) | | Creates a new XMLSerializer object.
Parameters: doc - Document to be serialized |
serialize | public void serialize(OutputStream os) throws IOException(Code) | | Serialize the encapsulated Document into the OutputStream
Parameters: os - output stream throws: IOException - When serialization fails |
serialize | public void serialize(Writer writer) throws IOException(Code) | | Serialize the encapsulated Document into the Writer
Parameters: writer - writer throws: IOException - When serialization fails |
setIndent | public void setIndent(int indent)(Code) | | Set the format line indent value.
Parameters: indent - line indent value |
setLineSeparator | public void setLineSeparator(String sep)(Code) | | Set the format line separator character.
Parameters: sep - line separator character |
setLineWidth | public void setLineWidth(int width)(Code) | | Set the format line width value.
Parameters: width - line width value |
|
|
|