|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.compoze.util.WriterOutputStream
public class WriterOutputStream
This class is an OutputStream that writes data to an underlying Writer. Bytes are converted to characters by creating a character with the most significant byte equal to zero.
Constructor Summary | |
---|---|
WriterOutputStream(java.io.Writer writer)
Constructor. |
Method Summary | |
---|---|
void |
write(byte[] b)
Write an array of bytes to the underlying writer. |
void |
write(byte[] b,
int iOffset,
int iLength)
Write an array of bytes to the underlying writer. |
void |
write(int i)
Write an int to the underlying writer. |
Methods inherited from class java.io.OutputStream |
---|
close, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WriterOutputStream(java.io.Writer writer)
writer
- the underlying writerMethod Detail |
---|
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
b
- the array to write
java.io.IOException
- if an i/o error occurredpublic void write(byte[] b, int iOffset, int iLength) throws java.io.IOException
write
in class java.io.OutputStream
b
- the array to write
java.io.IOException
- if an i/o error occurredpublic void write(int i) throws java.io.IOException
write
in class java.io.OutputStream
i
- the integer to write
java.io.IOException
- if an i/o error occurred
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |