|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer tribble.io.PassThruWriter
public class PassThruWriter
Pass-through character writer stream.
Writes characters to an underlying OutputStream
object, writing
each Unicode character code as a single byte. This is effectively a character
stream that writes ISO 8859-1 character codes as uninterpreted
single-byte sequences, i.e., each character code is composed of a single 8-bit
octet written to the output stream.
PassThruReader
Field Summary | |
---|---|
protected java.io.OutputStream |
m_out
Underlying byte output stream. |
(package private) static java.lang.String |
REV
Revision information. |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
PassThruWriter(java.io.OutputStream out)
Constructor. |
Method Summary | |
---|---|
void |
close()
Flush and close this output stream. |
void |
flush()
Flush any pending output to this output stream. |
void |
write(char[] buf,
int off,
int len)
Write a group of characters. |
void |
write(int ch)
Write a single character. |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String REV
protected java.io.OutputStream m_out
Constructor Detail |
---|
public PassThruWriter(java.io.OutputStream out)
out
- Underlying output stream, which provides a destination for output bytes.Method Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
- Thrown if an I/O error occurs while closing the underlying output stream.public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
- Thrown if an I/O error occurs while closing the underlying output stream.public void write(int ch) throws java.io.IOException
write
in class java.io.Writer
ch
- A Unicode character code. Only the lower 8 bits of the character are used
(yielding characters in the range [0x0000,0x00FF]).
java.io.IOException
- Thrown if an I/O error occurs while writing the underlying output stream.public void write(char[] buf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
buf
- An array of Unicode characters to be written.
Only the lower 8 bits of each character are used (yielding characters in
the range [0x0000,0x00FF]).off
- Index of the first character in buf to write.len
- Number of characters in buf to write.
java.io.IOException
- Thrown if an I/O error occurs while writing the underlying output stream.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |