All Packages Class Hierarchy This Package Previous Next Index
Class com.jclark.xml.output.UTF8XMLWriter
java.lang.Object
|
+----java.io.Writer
|
+----com.jclark.xml.output.XMLWriter
|
+----com.jclark.xml.output.UTF8XMLWriter
- public class UTF8XMLWriter
- extends XMLWriter
An XMLWriter that encodes characters in UTF-8.
Methods are not synchronized: wrap this in a SyncXMLWriter
if you need to use this concurrently from multiple threads.
-
MINIMIZE_EMPTY_ELEMENTS
-
-
UTF8XMLWriter(OutputStream)
- Create an XML writer that will write in UTF-8 to the specified
OutputStream with the default options.
-
UTF8XMLWriter(OutputStream, int)
- Create an XML writer that will write in UTF-8 to the specified
OutputStream with the specified options.
-
attribute(String, String)
- Write an attribute.
-
close()
-
-
endElement(String)
- End an element.
-
flush()
-
-
markup(String)
- Write markup.
-
processingInstruction(String, String)
- Write a processing instruction.
-
startElement(String)
- Start an element.
-
write(char)
-
-
write(char[], int, int)
-
-
write(String)
-
-
write(String, int, int)
-
-
writeUTF8(byte[], int, int)
-
MINIMIZE_EMPTY_ELEMENTS
public static final int MINIMIZE_EMPTY_ELEMENTS
UTF8XMLWriter
public UTF8XMLWriter(OutputStream out,
int options)
- Create an XML writer that will write in UTF-8 to the specified
OutputStream with the specified options.
UTF8XMLWriter
public UTF8XMLWriter(OutputStream out)
- Create an XML writer that will write in UTF-8 to the specified
OutputStream with the default options.
writeUTF8
public void writeUTF8(byte buf[],
int off,
int len) throws IOException
write
public void write(char cbuf[],
int off,
int len) throws IOException
- Overrides:
- write in class Writer
write
public void write(char c) throws IOException
write
public void write(String str) throws IOException
- Overrides:
- write in class Writer
write
public void write(String str,
int off,
int len) throws IOException
- Overrides:
- write in class Writer
startElement
public void startElement(String name) throws IOException
- Start an element.
- Overrides:
- startElement in class XMLWriter
attribute
public void attribute(String name,
String value) throws IOException
- Write an attribute.
- Overrides:
- attribute in class XMLWriter
endElement
public void endElement(String name) throws IOException
- End an element.
- Overrides:
- endElement in class XMLWriter
processingInstruction
public void processingInstruction(String target,
String data) throws IOException
- Write a processing instruction.
- Overrides:
- processingInstruction in class XMLWriter
markup
public void markup(String str) throws IOException
- Write markup.
- Overrides:
- markup in class XMLWriter
flush
public void flush() throws IOException
- Overrides:
- flush in class Writer
close
public void close() throws IOException
- Overrides:
- close in class Writer
All Packages Class Hierarchy This Package Previous Next Index