|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Writer | +--weblogic.apache.xalan.serialize.WriterToUTF8Buffered
This class writes ASCII to a byte stream as quickly as possible. For the moment it does not do buffering, though I reserve the right to do some buffering down the line if I can prove that it will be faster even if the output stream is buffered.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
WriterToUTF8Buffered(java.io.OutputStream out)
Create an buffered UTF-8 writer. |
|
WriterToUTF8Buffered(java.io.OutputStream out,
int size)
Create an buffered UTF-8 writer to write data to the specified underlying output stream with the specified buffer size. |
Method Summary | |
void |
close()
Close the stream, flushing it first. |
void |
flush()
Flush the stream. |
void |
flushBuffer()
Flush the internal buffer |
java.io.OutputStream |
getOutputStream()
Get the output stream where the events will be serialized to. |
void |
write(char[] chars,
int start,
int length)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(java.lang.String s)
Write a string. |
Methods inherited from class java.io.Writer |
write,
write |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public WriterToUTF8Buffered(java.io.OutputStream out) throws java.io.UnsupportedEncodingException
out
- the underlying output stream.public WriterToUTF8Buffered(java.io.OutputStream out, int size)
out
- the underlying output stream.size
- the buffer size.Method Detail |
public void write(int c) throws java.io.IOException
Subclasses that intend to support efficient single-character output should override this method.
c
- int specifying a character to be written.public void write(char[] chars, int start, int length) throws java.io.IOException
chars
- Array of charactersstart
- Offset from which to start writing characterslength
- Number of characters to writepublic void write(java.lang.String s) throws java.io.IOException
s
- String to be writtenpublic void flushBuffer() throws java.io.IOException
public void flush() throws java.io.IOException
public void close() throws java.io.IOException
public java.io.OutputStream getOutputStream()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |