|
||||||||||
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
Abstract class representing a filtered output stream of bytes. This class is the basis for enhancing output stream functionality. It allows multiple output stream filters to be chained together, each providing additional functionality.
Field Summary | |
protected OutputStream |
out
The actual output stream. |
Constructor Summary | |
FilterOutputStream(OutputStream out)
Creates an output stream filter. |
Method Summary | |
void |
close()
Closes the stream. |
void |
flush()
Flushes the stream. |
void |
write(byte[] b)
Writes an array of bytes. |
void |
write(byte[] b,
int off,
int len)
Writes a subarray of bytes. |
void |
write(int b)
Writes a byte. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected OutputStream out
Constructor Detail |
public FilterOutputStream(OutputStream out)
out
- the output streamMethod Detail |
public void write(int b) throws IOException
write
in class OutputStream
b
- the byte
IOException
- If an I/O error has occurred.public void write(byte[] b) throws IOException
write
in class OutputStream
b
- the data to be written
IOException
- If an I/O error has occurred.public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
b
- the data to be writtenoff
- the start offset in the datalen
- the number of bytes that are written
IOException
- If an I/O error has occurred.public void flush() throws IOException
flush
in class OutputStream
IOException
- If an I/O error has occurred.public void close() throws IOException
close
in class OutputStream
IOException
- If an I/O error has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |