org.exolab.castor.xml
Class XercesJDK5OutputFormat

java.lang.Object
  extended by org.exolab.castor.xml.XercesJDK5OutputFormat
All Implemented Interfaces:
OutputFormat

public class XercesJDK5OutputFormat
extends java.lang.Object
implements OutputFormat

Xerces-specific OutputFormat instance, used with JDK 5.0 only.

Version:
$Revision: 6216 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Werner Guttmann

Field Summary
 
Fields inherited from interface org.exolab.castor.xml.OutputFormat
XML
 
Constructor Summary
XercesJDK5OutputFormat()
          Creates an instance of this class.
 
Method Summary
 java.lang.Object getFormat()
          Returns the (underlying) OutputFormat instance
 void setDoctype(java.lang.String type1, java.lang.String type2)
          Defines the doc types to use.
 void setEncoding(java.lang.String encoding)
          Sets the encoding to use.
 void setIndenting(boolean indent)
          Specify whether indentation is required
 void setMethod(java.lang.String method)
          Set serialization method.
 void setOmitDocumentType(boolean omitDocumentType)
          Indicates whether to omit DOCTYPE definition.
 void setOmitXMLDeclaration(boolean omitXMLDeclaration)
          Indicates whether to omit XML declaration.
 void setPreserveSpace(boolean preserveSpace)
          Indicate whether white space should be preserved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XercesJDK5OutputFormat

public XercesJDK5OutputFormat()
Creates an instance of this class.

Method Detail

setMethod

public void setMethod(java.lang.String method)
Description copied from interface: OutputFormat
Set serialization method.

Specified by:
setMethod in interface OutputFormat
Parameters:
method - Required serialization method.
See Also:
{@inheritDoc}

setIndenting

public void setIndenting(boolean indent)
Description copied from interface: OutputFormat
Specify whether indentation is required

Specified by:
setIndenting in interface OutputFormat
Parameters:
indent - true if XML output should be intended.
See Also:
{@inheritDoc}

setPreserveSpace

public void setPreserveSpace(boolean preserveSpace)
Description copied from interface: OutputFormat
Indicate whether white space should be preserved.

Specified by:
setPreserveSpace in interface OutputFormat
Parameters:
preserveSpace - True if white space should be preserved
See Also:
{@inheritDoc}

getFormat

public java.lang.Object getFormat()
Description copied from interface: OutputFormat
Returns the (underlying) OutputFormat instance

Specified by:
getFormat in interface OutputFormat
Returns:
the (underlying) OutputFormat instance
See Also:
{@inheritDoc}

setDoctype

public void setDoctype(java.lang.String type1,
                       java.lang.String type2)
Description copied from interface: OutputFormat
Defines the doc types to use.

Specified by:
setDoctype in interface OutputFormat
Parameters:
type1 - Public DOC type.
type2 - System doc type.
See Also:
{@inheritDoc}

setOmitXMLDeclaration

public void setOmitXMLDeclaration(boolean omitXMLDeclaration)
Description copied from interface: OutputFormat
Indicates whether to omit XML declaration.

Specified by:
setOmitXMLDeclaration in interface OutputFormat
Parameters:
omitXMLDeclaration - True if XMl declaration should be omitted.
See Also:
{@inheritDoc}

setOmitDocumentType

public void setOmitDocumentType(boolean omitDocumentType)
Description copied from interface: OutputFormat
Indicates whether to omit DOCTYPE definition.

Specified by:
setOmitDocumentType in interface OutputFormat
Parameters:
omitDocumentType - True if DOCTYPE definition should be omitted.
See Also:
{@inheritDoc}

setEncoding

public void setEncoding(java.lang.String encoding)
Description copied from interface: OutputFormat
Sets the encoding to use.

Specified by:
setEncoding in interface OutputFormat
Parameters:
encoding - The encoding to use.
See Also:
{@inheritDoc}


Copyright © 2011. All Rights Reserved.