public class FinishableWrapperOutputStream extends FinishableOutputStream
限定符和类型 | 字段和说明 |
---|---|
protected OutputStream |
out
The
OutputStream that has been
wrapped into a FinishableWrapperOutputStream. |
构造器和说明 |
---|
FinishableWrapperOutputStream(OutputStream out)
Creates a new output stream which support finishing.
|
限定符和类型 | 方法和说明 |
---|---|
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 OutputStream out
OutputStream
that has been
wrapped into a FinishableWrapperOutputStream.public FinishableWrapperOutputStream(OutputStream out)
finish()
method will do nothing.public void write(int b) throws IOException
out.write(b)
.write
在类中 OutputStream
IOException
public void write(byte[] buf) throws IOException
out.write(buf)
.write
在类中 OutputStream
IOException
public void write(byte[] buf, int off, int len) throws IOException
out.write(buf, off, len)
.write
在类中 OutputStream
IOException
public void flush() throws IOException
out.flush()
.flush
在接口中 Flushable
flush
在类中 OutputStream
IOException
public void close() throws IOException
out.close()
.close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 OutputStream
IOException