org.exolab.castor.xml
public interface OutputFormat
Field Summary | |
---|---|
static String | XML
Default serialization method, being XML |
Method Summary | |
---|---|
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. |
Returns: the (underlying) OutputFormat instance
Parameters: type1 Public DOC type. type2 System doc type.
Parameters: encoding The encoding to use.
Parameters: indent true if XML output should be intended.
Parameters: method Required serialization method.
Parameters: omitDocumentType True if DOCTYPE definition should be omitted.
Parameters: omitXMLDeclaration True if XMl declaration should be omitted.
Parameters: preserveSpace True if white space should be preserved