| java.lang.Object java.io.Writer org.apache.xml.serializer.WriterToUTF8Buffered
WriterToUTF8Buffered | final class WriterToUTF8Buffered extends Writer implements WriterChain(Code) | | This class writes unicode characters to a byte stream (java.io.OutputStream)
as quickly as possible. It buffers the output in an internal
buffer which must be flushed to the OutputStream when done. This flushing
is done via the close() flush() or flushBuffer() method.
This class is only used internally within Xalan.
|
Method Summary | |
public void | close() Close the stream, flushing it first. | public void | flush() Flush the stream. | public void | flushBuffer() | public OutputStream | getOutputStream() Get the output stream where the events will be serialized to. | public Writer | getWriter() | public void | write(int c) Write a single character. | public void | write(char chars, int start, int length) Write a portion of an array of characters. | public void | write(String s) Write a string. |
close | public void close() throws java.io.IOException(Code) | | Close the stream, flushing it first. Once a stream has been closed,
further write() or flush() invocations will cause an IOException to be
thrown. Closing a previously-closed stream, however, has no effect.
exception: IOException - If an I/O error occurs throws: java.io.IOException - |
flush | public void flush() throws java.io.IOException(Code) | | Flush the stream. If the stream has saved any characters from the
various write() methods in a buffer, write them immediately to their
intended destination. Then, if that destination is another character or
byte stream, flush it. Thus one flush() invocation will flush all the
buffers in a chain of Writers and OutputStreams.
exception: IOException - If an I/O error occurs throws: java.io.IOException - |
getOutputStream | public OutputStream getOutputStream()(Code) | | Get the output stream where the events will be serialized to.
reference to the result stream, or null of only a writer wasset. |
write | public void write(int c) throws IOException(Code) | | Write a single character. The character to be written is contained in
the 16 low-order bits of the given integer value; the 16 high-order bits
are ignored.
Subclasses that intend to support efficient single-character output
should override this method.
Parameters: c - int specifying a character to be written. exception: IOException - If an I/O error occurs |
write | public void write(char chars, int start, int length) throws java.io.IOException(Code) | | Write a portion of an array of characters.
Parameters: chars - Array of characters Parameters: start - Offset from which to start writing characters Parameters: length - Number of characters to write exception: IOException - If an I/O error occurs throws: java.io.IOException - |
|
|