public class FinishableWrapperOutputStream extends FinishableOutputStream
Modifier and Type | Field and Description |
---|---|
protected java.io.OutputStream |
out
The
OutputStream that has been
wrapped into a FinishableWrapperOutputStream. |
Constructor and Description |
---|
FinishableWrapperOutputStream(java.io.OutputStream out)
Creates a new output stream which support finishing.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Calls
out.close() . |
void |
flush()
Calls
out.flush() . |
void |
write(byte[] buf)
Calls
out.write(buf) . |
void |
write(byte[] buf,
int off,
int len)
Calls
out.write(buf, off, len) . |
void |
write(int b)
Calls
out.write(b) . |
finish
protected java.io.OutputStream out
OutputStream
that has been
wrapped into a FinishableWrapperOutputStream.public FinishableWrapperOutputStream(java.io.OutputStream out)
finish()
method will do nothing.public void write(int b) throws java.io.IOException
out.write(b)
.write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buf) throws java.io.IOException
out.write(buf)
.write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buf, int off, int len) throws java.io.IOException
out.write(buf, off, len)
.write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
out.flush()
.flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
out.close()
.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException