org.n52.security.common.xml
Class DOMSerializerOptions
java.lang.Object
org.n52.security.common.xml.DOMSerializerOptions
public class DOMSerializerOptions
- extends Object
Encapsulates settings for the DOMSerializer.
- Version:
- $Revision: $
- Author:
- Marko Reiprecht
Created on 23.04.2008
DOMSerializerOptions
public DOMSerializerOptions()
getDefaultOptions
public static DOMSerializerOptions getDefaultOptions()
noIndent
public DOMSerializerOptions noIndent()
getEncoding
public String getEncoding()
getIndentAmount
public int getIndentAmount()
isIndent
public boolean isIndent()
isOmitXMLDeclaration
public boolean isOmitXMLDeclaration()
- Method returns whether xml declaration shall be written.
- Returns:
- boolean.
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
emitXMLDeclaration
public DOMSerializerOptions emitXMLDeclaration()
encoding
public DOMSerializerOptions encoding(String encoding)
encodingUTF8
public DOMSerializerOptions encodingUTF8()
indentAmount
public DOMSerializerOptions indentAmount(int amount)
indent
public DOMSerializerOptions indent()
- Method sets the indent is requested.
- Returns:
- DOMSerializerOptions.
omitXMLDeclaration
public DOMSerializerOptions omitXMLDeclaration()
Copyright © 2004–2014 52north.org. All rights reserved.