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
OutputStreamwrite in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
OutputStreamwrite in class OutputStreamIOExceptionpublic void write(byte[] b,
int offset,
int length)
throws IOException
OutputStreamwrite in class OutputStreamIOExceptionpublic void flush()
throws IOException
OutputStreamflush in class OutputStreamIOExceptionpublic void close()
throws IOException
OutputStreamclose in interface AutoCloseableclose in class OutputStreamIOException