public class BaseXercesOutputFormat extends Object implements OutputFormat
| Modifier and Type | Field and Description |
|---|---|
protected Object |
_outputFormat |
XML| Constructor and Description |
|---|
BaseXercesOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getFormat()
Returns the (underlying) OutputFormat instance
|
void |
setDoctype(String type1,
String type2)
Defines the doc types to use.
|
void |
setEncoding(String encoding)
Sets the encoding to use.
|
void |
setIndenting(boolean indent)
Specify whether indentation is required
|
void |
setMethod(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.
|
void |
setVersion(String version)
Defines the XML document version to be output.
|
protected Object _outputFormat
public Object getFormat()
OutputFormatgetFormat in interface OutputFormatpublic void setMethod(String method)
OutputFormatsetMethod in interface OutputFormatmethod - Required serialization method.public void setIndenting(boolean indent)
OutputFormatsetIndenting in interface OutputFormatindent - true if XML output should be intended.public void setPreserveSpace(boolean preserveSpace)
OutputFormatsetPreserveSpace in interface OutputFormatpreserveSpace - True if white space should be preservedpublic void setDoctype(String type1, String type2)
OutputFormatsetDoctype in interface OutputFormattype1 - Public DOC type.type2 - System doc type.public void setOmitXMLDeclaration(boolean omitXMLDeclaration)
OutputFormatsetOmitXMLDeclaration in interface OutputFormatomitXMLDeclaration - True if XMl declaration should be omitted.public void setOmitDocumentType(boolean omitDocumentType)
OutputFormatsetOmitDocumentType in interface OutputFormatomitDocumentType - True if DOCTYPE definition should be omitted.public void setEncoding(String encoding)
OutputFormatsetEncoding in interface OutputFormatencoding - The encoding to use.public void setVersion(String version)
OutputFormatsetVersion in interface OutputFormatCopyright © 2016. All rights reserved.