| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface SerializerMethod Summary | |
ContentHandler |
|
DOMSerializer |
|
Properties |
|
OutputStream |
|
Writer |
|
boolean |
|
void |
|
void |
|
void |
|
public ContentHandler asContentHandler()
throws IOExceptionDeprecated. Use org.apache.xml.serializer.Serializer
Return aContentHandlerinterface into this serializer. If the serializer does not support theContentHandlerinterface, it should return null.
- Returns:
- A
ContentHandlerinterface into this serializer, or null if the serializer is not SAX 2 capable
public DOMSerializer asDOMSerializer() throws IOException
Deprecated. Use org.apache.xml.serializer.Serializer
Return aDOMSerializerinterface into this serializer. If the serializer does not support theDOMSerializerinterface, it should return null.
- Returns:
- A
DOMSerializerinterface into this serializer, or null if the serializer is not DOM capable
public Properties getOutputFormat()
Deprecated. Use org.apache.xml.serializer.Serializer
Returns the output format for this serializer.
- Returns:
- The output format in use
public OutputStream getOutputStream()
Deprecated. Use org.apache.xml.serializer.Serializer
Get the output stream where the events will be serialized to.
- Returns:
- reference to the result stream, or null of only a writer was set.
public Writer getWriter()
Deprecated. Use org.apache.xml.serializer.Serializer
Get the character stream where the events will be serialized to.
- Returns:
- Reference to the result Writer, or null.
public boolean reset()
Deprecated. Use org.apache.xml.serializer.Serializer
Resets the serializer. If this method returns true, the serializer may be used for subsequent serialization of new documents. It is possible to change the output format and output stream prior to serializing, or to use the existing output format and output stream.
- Returns:
- True if serializer has been reset and can be reused
public void setOutputFormat(Properties format)
Deprecated. Use org.apache.xml.serializer.Serializer
Specifies an output format for this serializer. It the serializer has already been associated with an output format, it will switch to the new format. This method should not be called while the serializer is in the process of serializing a document.
- Parameters:
format- The output format to use
public void setOutputStream(OutputStream output)
Deprecated. Use org.apache.xml.serializer.Serializer
Specifies an output stream to which the document should be serialized. This method should not be called while the serializer is in the process of serializing a document. The encoding specified in the outputPropertiesis used, or if no encoding was specified, the default for the selected output method.
- Parameters:
output- The output stream
public void setWriter(Writer writer)
Deprecated. Use org.apache.xml.serializer.Serializer
Specifies a writer to which the document should be serialized. This method should not be called while the serializer is in the process of serializing a document. The encoding specified for the outputPropertiesmust be identical to the output format used with the writer.
- Parameters:
writer- The output writer stream