Top Description Fields Constructors Methods
org.tukaani.xz

public Class FinishableWrapperOutputStream

extends FinishableOutputStream
Class Inheritance
Imports
java.io.OutputStream, .IOException

Wraps an output stream to a finishable output stream for use with raw encoders. This is not needed for XZ compression and thus most people will never need this.

Field Summary

Modifier and TypeField and Description
protected OutputStream
out

The OutputStream that has been wrapped into a FinishableWrapperOutputStream.

Constructor Summary

AccessConstructor and Description
public
FinishableWrapperOutputStream(OutputStream out)

Creates a new output stream which support finishing.

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
write(int
the byte.
b
)

Implements abstract java.io.OutputStream.write.

Calls out.write(b).
public void
write(byte[]
the data.
buf
)

Overrides java.io.OutputStream.write.

Calls out.write(buf).
public void
write(byte[]
the data.
buf
,
int
the start offset in the data.
off
,
int
the number of bytes to write.
len
)

Overrides java.io.OutputStream.write.

Calls out.write(buf, off, len).
Inherited from org.tukaani.xz.FinishableOutputStream:
finish

Field Detail

outback to summary
protected OutputStream out

The OutputStream that has been wrapped into a FinishableWrapperOutputStream.

Constructor Detail

FinishableWrapperOutputStreamback to summary
public FinishableWrapperOutputStream(OutputStream out)

Creates a new output stream which support finishing. The finish() method will do nothing.

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.OutputStream.close.

Implements java.io.Closeable.close.

Calls out.close().

Exceptions
IOException:

Doc from java.io.OutputStream.close.

if an I/O error occurs.

flushback to summary
public void flush() throws IOException

Overrides java.io.OutputStream.flush.

Implements java.io.Flushable.flush.

Calls out.flush().

Exceptions
IOException:

Doc from java.io.OutputStream.flush.

if an I/O error occurs.

writeback to summary
public void write(int b) throws IOException

Implements abstract java.io.OutputStream.write.

Calls out.write(b).

Parameters
b:int

Doc from java.io.OutputStream.write.

the byte.

Exceptions
IOException:

Doc from java.io.OutputStream.write.

if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.

writeback to summary
public void write(byte[] buf) throws IOException

Overrides java.io.OutputStream.write.

Calls out.write(buf).

Parameters
buf:byte[]

Doc from java.io.OutputStream.write.

the data.

Exceptions
IOException:

Doc from java.io.OutputStream.write.

if an I/O error occurs.

writeback to summary
public void write(byte[] buf, int off, int len) throws IOException

Overrides java.io.OutputStream.write.

Calls out.write(buf, off, len).

Parameters
buf:byte[]

Doc from java.io.OutputStream.write.

the data.

off:int

Doc from java.io.OutputStream.write.

the start offset in the data.

len:int

Doc from java.io.OutputStream.write.

the number of bytes to write.

Exceptions
IOException:

Doc from java.io.OutputStream.write.

if an I/O error occurs. In particular, an IOException is thrown if the output stream is closed.