|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.vex.DocumentWriter
Writes a document to an output stream, using a stylesheet to provide formatting hints.
Documents are currently saved UTF-8 encoding, with no encoding specified in the XML declaration.
Constructor Summary | |
DocumentWriter(StyleSheet styleSheet)
Class constructor. |
Method Summary | |
static java.lang.String |
escape(java.lang.String s)
Escapes special XML characters. |
java.lang.String |
getIndent()
Returns the indent string. |
StyleSheet |
getStyleSheet()
Returns the style sheet used to provide formatting hints to the writer. |
int |
getWrapColumn()
Returns the column at which text should be wrapped. |
void |
setIndent(java.lang.String indent)
Sets the value of the indent string. |
void |
setWrapColumn(int wrapColumn)
Sets the value of the wrap column. |
void |
writeDocument(Document doc,
java.io.OutputStream os)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentWriter(StyleSheet styleSheet)
styleSheet
- StyleSheet used to provide hints as to whether
elements are block- or inline-formatted.Method Detail |
public static java.lang.String escape(java.lang.String s)
s
- the string to be escaped.
public java.lang.String getIndent()
public StyleSheet getStyleSheet()
public int getWrapColumn()
public void setIndent(java.lang.String indent)
indent
- new value for the indent string.public void setWrapColumn(int wrapColumn)
wrapColumn
- new value for the wrap column.public void writeDocument(Document doc, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |