|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
jd.io.TabWriter
jd.xml.util.XmlWriter
A Writer class to produce pretty printed xml files. "0xA" is used to separate lines.
Field Summary |
Fields inherited from class java.io.PrintWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
XmlWriter(OutputStream out,
Encoding encoding,
boolean autoFlush)
Create a new XmlWriter. |
|
XmlWriter(OutputStream out,
String xmlEncoding,
boolean autoFlush)
Create a new XmlWriter. |
|
XmlWriter(Writer out,
Encoding encoding,
boolean autoFlush)
Create a new XmlWriter. |
|
XmlWriter(Writer out,
String xmlEncoding,
boolean autoFlush)
Create a new XmlWriter. |
Method Summary | |
Encoding |
getEncoding()
Return the used xml encoding. |
void |
printAttribute(String name,
String value)
Print an attribute. |
void |
printAttributeValue(String value)
Print a attribute value. |
void |
printClose()
Print '>'. |
void |
printCloseSlash()
Print "/>". |
void |
printEqualsQuote()
Print '="'. |
void |
printOpen()
Print '<'. |
void |
printOpenSlash()
Print "". |
void |
printQuote()
Print '"'. |
void |
printSpace()
Print a single space character. |
void |
printText(String text)
Print XML text. |
Methods inherited from class jd.io.TabWriter |
checkError, close, decreaseTab, flush, getBufferUsed, getTabCount, increaseTab, newLineStarted, print, println, println, println, println, println, println, println, println, println, println, resetBuffer, setError, setLineSeparator, setTabChars, write, write, write, write, write, writeNewLineTab |
Methods inherited from class java.io.PrintWriter |
print, print, print, print, print, print, print, print, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlWriter(OutputStream out, String xmlEncoding, boolean autoFlush) throws UnsupportedEncodingException
out
- a OutputStreamxmlEncoding
- the used encodingautoFlush
- - if true the println() methods will flush the output bufferpublic XmlWriter(OutputStream out, Encoding encoding, boolean autoFlush) throws UnsupportedEncodingException
out
- an OutputStreamautoFlush
- - if true the println() methods will flush the output bufferpublic XmlWriter(Writer out, String xmlEncoding, boolean autoFlush)
out
- a WriterxmlEncoding
- the encodingautoFlush
- - if true the println() methods will flush the output bufferpublic XmlWriter(Writer out, Encoding encoding, boolean autoFlush)
out
- a WriterautoFlush
- - if true the println() methods will flush the output bufferMethod Detail |
public Encoding getEncoding()
public void printAttribute(String name, String value)
public void printAttributeValue(String value)
public void printText(String text)
public void printSpace()
public void printOpen()
public void printOpenSlash()
public void printClose()
public void printCloseSlash()
public void printEqualsQuote()
public void printQuote()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |