|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.infoengine.SAK.WriterOutputStream
This class implements an output stream class that wraps a writer class. This makes it convenient to use a servlet or JSP writer as the output stream for a webject.
Field Summary | |
private BufferedWriter |
writer
|
Constructor Summary | |
WriterOutputStream(Writer writer)
Constructs an instance that wraps a specified writer. |
Method Summary | |
void |
close()
Closes this output stream and releases any system resources associated with this stream. |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written. |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int b)
Writes the specified byte to this output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private BufferedWriter writer
Constructor Detail |
public WriterOutputStream(Writer writer)
writer
- The writer to be wrapped.Method Detail |
public void write(int b) throws IOException
b
- The byte to be written.
IOException
- if an I/O error occurs.public void write(byte[] b) throws IOException
b
- The byte array to be written.
IOException
- if an I/O error occurs.public void write(byte[] b, int off, int len) throws IOException
b
- The byte array to be written.off
- The offset of the first byte to write.len
- The number of bytes to write.
IOException
- if an I/O error occurs.public void flush() throws IOException
IOException
- if an I/O error occurs.public void close() throws IOException
IOException
- if an I/O error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |