|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
A FilterOutputStream contains another output stream, which it uses as its basic data drain, possibly transforming the data before it is written to the stream.
| Constructor Summary | |
FilterOutputStream(OutputStream os)
Creates a new instance of FilterOutputStream. |
|
| Method Summary | |
void |
close()
Closes the underlying output stream and releases all system resources associated with it. |
void |
flush()
Flushes the underlying output stream. |
void |
write(byte[] b)
Writes b.length bytes from b to the underlying output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from b to the underlying output stream starting at offset off. |
void |
write(int i)
Writes a single byte to the underlying output stream. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, toString |
| Constructor Detail |
public FilterOutputStream(OutputStream os)
os - Output stream to write data to.| Method Detail |
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamb - Array of bytes containing the data to be written.off - Offset into b where the data begins.len - Number of bytes to be written.
IOException - if an I/O error occures.
public void close()
throws IOException
close in class OutputStreamIOException
public void flush()
throws IOException
flush in class OutputStreamIOException
public void write(byte[] b)
throws IOException
write in class OutputStreamb - Array of bytes containing the data to be written.
IOException - if an I/O error occures.
public void write(int i)
throws IOException
write in class OutputStreami - The byte of data to write.
IOException - if an I/O error occures.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||