|
Enhydra 3.0.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.io.OutputOptions
Object that specifis how a XML file will be formatted.
Constructor Summary | |
OutputOptions()
|
Method Summary | |
boolean |
getDropHtmlSpanIds()
Get the drop HTML SPAN element ids flag. |
boolean |
getIndenting()
Get indentation enabled state. |
int |
getIndentSize()
Get indentation size. |
java.lang.String |
getJavaEncoding()
Get the Java encoding. |
int |
getLineWidth()
Get the width at while long lines are split when indentation is enabled. |
boolean |
getOmitEncoding()
Get flag indicating if encoding should be omitted from the XML header. |
boolean |
getPreserveSpace()
Get the default space-preservation flag. |
java.lang.String |
getXmlEncoding()
Get the XML encoding. |
void |
setDropHtmlSpanIds(boolean drop)
Set the drop HTML SPAN element ids flag. |
void |
setIndenting(boolean enable)
Enable or disable indentation. |
void |
setIndentSize(int size)
Set indentation size. |
void |
setJavaEncoding(java.lang.String newJavaEncoding)
Set the encoding using the Java encoding name. |
void |
setLineWidth(int width)
Set the width at while long lines are split when indentation is enabled. |
void |
setOmitEncoding(boolean omit)
Set flag indicating if encoding should be omitted from the XML header. |
void |
setPreserveSpace(boolean preserve)
Set the default space-preservation flag. |
void |
setXmlEncoding(java.lang.String newXmlEncoding)
Set the encoding using the XML encoding name. |
void |
setXmlEncoding(java.lang.String newJavaEncoding,
java.lang.String newXmlEncoding)
Set both the XML and Java encodings. |
java.lang.String |
toString()
Convert to a string for debugging. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public OutputOptions()
Method Detail |
public java.lang.String getJavaEncoding()
public void setJavaEncoding(java.lang.String newJavaEncoding)
newJavaEncoding
- the new Java encoding or null to set to default.public java.lang.String getXmlEncoding()
public void setXmlEncoding(java.lang.String newXmlEncoding)
newXmlEncoding
- the new XML encoding or null to set to default.public void setXmlEncoding(java.lang.String newJavaEncoding, java.lang.String newXmlEncoding)
newJavaEncoding
- the new Java encoding or null to set to default.newXmlEncoding
- the new XML encoding or null to set to default.public boolean getIndenting()
public void setIndenting(boolean enable)
enable
- true to enable, false to disable.public int getIndentSize()
public void setIndentSize(int size)
size
- Number of characters to indent at each level.public int getLineWidth()
public void setLineWidth(int width)
width
- the new line widthpublic boolean getPreserveSpace()
public void setPreserveSpace(boolean preserve)
perserve
- true if preserving space where not otherwise specified
by the documentpublic boolean getOmitEncoding()
public void setOmitEncoding(boolean omit)
public boolean getDropHtmlSpanIds()
public void setDropHtmlSpanIds(boolean drop)
public java.lang.String toString()
|
Enhydra 3.0.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |