public class FilterOutputStream extends OutputStream
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
out |
Modifier | Constructor and Description |
---|---|
protected |
FilterOutputStream(OutputStream underlying) |
Modifier and Type | Method and Description |
---|---|
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 out.
|
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream.
|
void |
write(byte[] b,
int offset,
int length)
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.
|
protected OutputStream out
protected FilterOutputStream(OutputStream underlying)
public void write(int b) throws IOException
OutputStream
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
OutputStream
write
in class OutputStream
IOException
public void write(byte[] b, int offset, int length) throws IOException
OutputStream
write
in class OutputStream
IOException
public void flush() throws IOException
OutputStream
flush
in class OutputStream
IOException
public void close() throws IOException
OutputStream
close
in interface AutoCloseable
close
in class OutputStream
IOException