Package com.jme3.export.xml
Class DOMSerializer
java.lang.Object
com.jme3.export.xml.DOMSerializer
Deprecated.
This class was only used in XMLExporter and has been replaced by javax.xml.transform.Transformer
The DOMSerializer was based primarily off the DOMSerializer.java class from the
"Java and XML" 3rd Edition book by Brett McLaughlin, and Justin Edelson. Some
modifications were made to support formatting of elements and attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Serializedoctooutvoidserialize(Document doc, OutputStream out) Deprecated.SerializedoctooutvoidsetEncoding(String encoding) Deprecated.Set the encoding used by this serializer.voidsetIndent(int indent) Deprecated.Set the number of spaces to use for indentation.voidsetLineSeparator(String lineSeparator) Deprecated.Set the line separator that will be used when serializing documents.
-
Constructor Details
-
DOMSerializer
public DOMSerializer()Deprecated.
-
-
Method Details
-
serialize
Deprecated.Serializedoctoout- Parameters:
doc- the document to serialize.file- the file to serialize to.- Throws:
IOException- for various error conditions
-
serialize
Deprecated.Serializedoctoout- Parameters:
doc- the document to serialize.out- the stream to serialize to.- Throws:
IOException- for various error conditions
-
setEncoding
Deprecated.Set the encoding used by this serializer.- Parameters:
encoding- the encoding to use, passing innullresults in the default encoding (UTF-8) being set.
-
setIndent
public void setIndent(int indent) Deprecated.Set the number of spaces to use for indentation.The default is to use 4 spaces.
- Parameters:
indent- the number of spaces to use for indentation, values less than or equal to zero result in no indentation being used.
-
setLineSeparator
Deprecated.Set the line separator that will be used when serializing documents.If this is not called then the serializer uses a default based on the
line.separatorsystem property.- Parameters:
lineSeparator- the line separator to set.
-