org.apache.xalan.serialize
Class SerializerFactory.SerializerWrapper

java.lang.Object
  extended by org.apache.xalan.serialize.SerializerFactory.SerializerWrapper
All Implemented Interfaces:
Serializer
Enclosing class:
SerializerFactory

Deprecated.

private static class SerializerFactory.SerializerWrapper
extends java.lang.Object
implements Serializer

This class just exists to wrap a new Serializer in the new package by an old one.


Field Summary
private  DOMSerializer m_old_DOMSerializer
          Deprecated.  
private  Serializer m_serializer
          Deprecated.  
 
Constructor Summary
SerializerFactory.SerializerWrapper(Serializer ser)
          Deprecated.  
 
Method Summary
 org.xml.sax.ContentHandler asContentHandler()
          Deprecated. Return a ContentHandler interface into this serializer.
 DOMSerializer asDOMSerializer()
          Deprecated. Return a DOMSerializer interface into this serializer.
 java.util.Properties getOutputFormat()
          Deprecated. Returns the output format for this serializer.
 java.io.OutputStream getOutputStream()
          Deprecated. Get the output stream where the events will be serialized to.
 java.io.Writer getWriter()
          Deprecated. Get the character stream where the events will be serialized to.
 boolean reset()
          Deprecated. Resets the serializer.
 void setOutputFormat(java.util.Properties format)
          Deprecated. Specifies an output format for this serializer.
 void setOutputStream(java.io.OutputStream output)
          Deprecated. Specifies an output stream to which the document should be serialized.
 void setWriter(java.io.Writer writer)
          Deprecated. Specifies a writer to which the document should be serialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_serializer

private final Serializer m_serializer
Deprecated. 

m_old_DOMSerializer

private DOMSerializer m_old_DOMSerializer
Deprecated. 
Constructor Detail

SerializerFactory.SerializerWrapper

SerializerFactory.SerializerWrapper(Serializer ser)
Deprecated. 
Method Detail

setOutputStream

public void setOutputStream(java.io.OutputStream output)
Deprecated. 
Description copied from interface: 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 output Properties is used, or if no encoding was specified, the default for the selected output method.

Specified by:
setOutputStream in interface Serializer
Parameters:
output - The output stream

getOutputStream

public java.io.OutputStream getOutputStream()
Deprecated. 
Description copied from interface: Serializer
Get the output stream where the events will be serialized to.

Specified by:
getOutputStream in interface Serializer
Returns:
reference to the result stream, or null of only a writer was set.

setWriter

public void setWriter(java.io.Writer writer)
Deprecated. 
Description copied from interface: 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 output Properties must be identical to the output format used with the writer.

Specified by:
setWriter in interface Serializer
Parameters:
writer - The output writer stream

getWriter

public java.io.Writer getWriter()
Deprecated. 
Description copied from interface: Serializer
Get the character stream where the events will be serialized to.

Specified by:
getWriter in interface Serializer
Returns:
Reference to the result Writer, or null.

setOutputFormat

public void setOutputFormat(java.util.Properties format)
Deprecated. 
Description copied from interface: 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.

Specified by:
setOutputFormat in interface Serializer
Parameters:
format - The output format to use

getOutputFormat

public java.util.Properties getOutputFormat()
Deprecated. 
Description copied from interface: Serializer
Returns the output format for this serializer.

Specified by:
getOutputFormat in interface Serializer
Returns:
The output format in use

asContentHandler

public org.xml.sax.ContentHandler asContentHandler()
                                            throws java.io.IOException
Deprecated. 
Description copied from interface: Serializer
Return a ContentHandler interface into this serializer. If the serializer does not support the ContentHandler interface, it should return null.

Specified by:
asContentHandler in interface Serializer
Returns:
A ContentHandler interface into this serializer, or null if the serializer is not SAX 2 capable
Throws:
java.io.IOException - An I/O exception occured

asDOMSerializer

public DOMSerializer asDOMSerializer()
                              throws java.io.IOException
Deprecated. 
Description copied from interface: Serializer
Return a DOMSerializer interface into this serializer. If the serializer does not support the DOMSerializer interface, it should return null.

Specified by:
asDOMSerializer in interface Serializer
Returns:
an old style DOMSerializer that wraps a new one.
Throws:
java.io.IOException - An I/O exception occured
See Also:
Serializer.asDOMSerializer()

reset

public boolean reset()
Deprecated. 
Description copied from interface: 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.

Specified by:
reset in interface Serializer
Returns:
True if serializer has been reset and can be reused
See Also:
Serializer.reset()