|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
com.isti.util.WriterOutputStream
public class WriterOutputStream
Class WriterOutputStream converts a 'Writer' to an 'OutputStream'.
| Field Summary | |
|---|---|
protected java.io.Writer |
writerObj
|
| Constructor Summary | |
|---|---|
WriterOutputStream(java.io.Writer writerObj)
Creates a 'Writer' to 'OutputStream' converter. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the stream. |
void |
flush()
Flushes the stream. |
void |
write(byte[] data)
Writes the given data array. |
void |
write(byte[] data,
int start,
int len)
Writes the given section of the given array. |
void |
write(int ch)
Writes a character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.io.Writer writerObj
| Constructor Detail |
|---|
public WriterOutputStream(java.io.Writer writerObj)
writerObj - the source 'Writer' object.| Method Detail |
|---|
public void write(int ch)
throws java.io.IOException
write in class java.io.OutputStreamch - character
java.io.IOException
public void write(byte[] data)
throws java.io.IOException
write in class java.io.OutputStreamdata - data array
java.io.IOException
public void write(byte[] data,
int start,
int len)
throws java.io.IOException
write in class java.io.OutputStreamdata - data arraystart - start indexlen - length
java.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||