Top Inners Fields Constructors Methods
org.apache.commons.compress.archivers.sevenz

pack-priv final Class Coders

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .FilterInputStream, .IOException, .InputStream, .OutputStream, .SequenceInputStream, java.util.Arrays, .HashMap, .Map, java.util.zip.Deflater, .DeflaterOutputStream, .Inflater, .InflaterInputStream, org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream, .BZip2CompressorOutputStream, org.apache.commons.compress.compressors.deflate64.Deflate64CompressorInputStream, org.apache.commons.compress.utils.FlushShieldFilterOutputStream, org.tukaani.xz.ARMOptions, .ARMThumbOptions, .FilterOptions, .FinishableWrapperOutputStream, .IA64Options, .PowerPCOptions, .SPARCOptions, .X86Options

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final Map<SevenZMethod, AbstractCoder>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static InputStream
addDecoder(final String archiveName, final InputStream is, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb)

pack-priv static OutputStream
addEncoder(final OutputStream out, final SevenZMethod method, final Object options)

pack-priv static AbstractCoder
findByMethod(final SevenZMethod method)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CODER_MAPback to summary
private static final Map<SevenZMethod, AbstractCoder> CODER_MAP

Constructor Detail

Codersback to summary
pack-priv Coders()

Method Detail

addDecoderback to summary
pack-priv static InputStream addDecoder(final String archiveName, final InputStream is, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb) throws IOException
addEncoderback to summary
pack-priv static OutputStream addEncoder(final OutputStream out, final SevenZMethod method, final Object options) throws IOException
findByMethodback to summary
pack-priv static AbstractCoder findByMethod(final SevenZMethod method)
org.apache.commons.compress.archivers.sevenz back to summary

pack-priv Class Coders.BCJDecoder

extends AbstractCoder
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final FilterOptions

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv InputStream
decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb)

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.
pack-priv OutputStream
encode(final OutputStream out, final Object options)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.
Inherited from org.apache.commons.compress.archivers.sevenz.AbstractCoder:
getOptionsAsPropertiesgetOptionsFromCoderisOptionInstancetoInt

Field Detail

optsback to summary
private final FilterOptions opts

Constructor Detail

BCJDecoderback to summary
pack-priv BCJDecoder(final FilterOptions opts)

Method Detail

decodeback to summary
pack-priv InputStream decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb) throws IOException

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.

Returns:InputStream

a stream that reads from in using the configured coder and password.

Annotations
@Override
encodeback to summary
pack-priv OutputStream encode(final OutputStream out, final Object options)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.

Returns:OutputStream

a stream that writes to out using the given configuration.

Annotations
@SuppressWarnings:resource
@Override
org.apache.commons.compress.archivers.sevenz back to summary

pack-priv Class Coders.BZIP2Decoder

extends AbstractCoder
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv InputStream
decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb)

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.
pack-priv OutputStream
encode(final OutputStream out, final Object options)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.
Inherited from org.apache.commons.compress.archivers.sevenz.AbstractCoder:
getOptionsAsPropertiesgetOptionsFromCoderisOptionInstancetoInt

Constructor Detail

BZIP2Decoderback to summary
pack-priv BZIP2Decoder()

Method Detail

decodeback to summary
pack-priv InputStream decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb) throws IOException

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.

Returns:InputStream

a stream that reads from in using the configured coder and password.

Annotations
@Override
encodeback to summary
pack-priv OutputStream encode(final OutputStream out, final Object options) throws IOException

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.

Returns:OutputStream

a stream that writes to out using the given configuration.

Annotations
@Override
Exceptions
IOException:
Optionally thrown by subclassses.
org.apache.commons.compress.archivers.sevenz back to summary

pack-priv Class Coders.CopyDecoder

extends AbstractCoder
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv InputStream
decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb)

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.
pack-priv OutputStream
encode(final OutputStream out, final Object options)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.
Inherited from org.apache.commons.compress.archivers.sevenz.AbstractCoder:
getOptionsAsPropertiesgetOptionsFromCoderisOptionInstancetoInt

Constructor Detail

CopyDecoderback to summary
pack-priv CopyDecoder()

Method Detail

decodeback to summary
pack-priv InputStream decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb) throws IOException

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.

Returns:InputStream

a stream that reads from in using the configured coder and password.

Annotations
@Override
encodeback to summary
pack-priv OutputStream encode(final OutputStream out, final Object options)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.

Returns:OutputStream

a stream that writes to out using the given configuration.

Annotations
@Override
org.apache.commons.compress.archivers.sevenz back to summary

pack-priv Class Coders.Deflate64Decoder

extends AbstractCoder
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv InputStream
decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb)

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.
Inherited from org.apache.commons.compress.archivers.sevenz.AbstractCoder:
encodegetOptionsAsPropertiesgetOptionsFromCoderisOptionInstancetoInt

Constructor Detail

Deflate64Decoderback to summary
pack-priv Deflate64Decoder()

Method Detail

decodeback to summary
pack-priv InputStream decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb) throws IOException

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.

Returns:InputStream

a stream that reads from in using the configured coder and password.

Annotations
@Override
org.apache.commons.compress.archivers.sevenz back to summary

pack-priv Class Coders.DeflateDecoder

extends AbstractCoder
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final byte[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv InputStream
decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb)

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.
pack-priv OutputStream
encode(final OutputStream out, final Object options)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.
Inherited from org.apache.commons.compress.archivers.sevenz.AbstractCoder:
getOptionsAsPropertiesgetOptionsFromCoderisOptionInstancetoInt

Field Detail

ONE_ZERO_BYTEback to summary
private static final byte[] ONE_ZERO_BYTE

Constructor Detail

DeflateDecoderback to summary
pack-priv DeflateDecoder()

Method Detail

decodeback to summary
pack-priv InputStream decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] password, final int maxMemoryLimitInKb) throws IOException

Implements abstract org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.decode.

Decodes using stream that reads from in using the configured coder and password.

Returns:InputStream

a stream that reads from in using the configured coder and password.

Annotations
@Override
encodeback to summary
pack-priv OutputStream encode(final OutputStream out, final Object options)

Overrides org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Doc from org.apache.commons.compress.archivers.sevenz.AbstractCoder.encode.

Encodes using a stream that writes to out using the given configuration.

Returns:OutputStream

a stream that writes to out using the given configuration.

Annotations
@Override
org.apache.commons.compress.archivers.sevenz back to summary

pack-priv Class Coders.DeflateDecoder.DeflateDecoderInputStream

extends FilterInputStream
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Inflater
Inherited from java.io.FilterInputStream:
in

Constructor Summary

AccessConstructor and Description
pack-priv
DeflateDecoderInputStream(final InflaterInputStream inflaterInputStream, final Inflater inflater)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.FilterInputStream.close.

Implements java.io.Closeable.close.

Closes this input stream and releases any system resources associated with the stream.
Inherited from java.io.FilterInputStream:
availablemarkmarkSupportedreadreadreadresetskip

Field Detail

inflaterback to summary
pack-priv Inflater inflater

Constructor Detail

DeflateDecoderInputStreamback to summary
pack-priv DeflateDecoderInputStream(final InflaterInputStream inflaterInputStream, final Inflater inflater)

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.FilterInputStream.close.

Implements java.io.Closeable.close.

Doc from java.io.FilterInputStream.close.

Closes this input stream and releases any system resources associated with the stream.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
org.apache.commons.compress.archivers.sevenz back to summary

pack-priv Class Coders.DeflateDecoder.DeflateDecoderOutputStream

extends OutputStream
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Deflater
pack-priv final DeflaterOutputStream

Constructor Summary

AccessConstructor and Description
pack-priv
DeflateDecoderOutputStream(final DeflaterOutputStream deflaterOutputStream, final Deflater deflater)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.OutputStream.close.

Implements java.io.Closeable.close.

Closes this output stream and releases any system resources associated with this stream.
public void
write(final byte[]
the data.
b
)

Overrides java.io.OutputStream.write.

Writes b.length bytes from the specified byte array to this output stream.
public void
write(final byte[]
the data.
b
,
final int
the start offset in the data.
off
,
final int
the number of bytes to write.
len
)

Overrides java.io.OutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this output stream.
public void
write(final int
the byte.
b
)

Implements abstract java.io.OutputStream.write.

Writes the specified byte to this output stream.
Inherited from java.io.OutputStream:
flushnullOutputStream

Field Detail

deflaterback to summary
pack-priv Deflater deflater
deflaterOutputStreamback to summary
pack-priv final DeflaterOutputStream deflaterOutputStream

Constructor Detail

DeflateDecoderOutputStreamback to summary
pack-priv DeflateDecoderOutputStream(final DeflaterOutputStream deflaterOutputStream, final Deflater deflater)

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.OutputStream.close.

Implements java.io.Closeable.close.

Doc from java.io.OutputStream.close.

Closes this output stream and releases any system resources associated with this stream. The general contract of close is that it closes the output stream. A closed stream cannot perform output operations and cannot be reopened.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
writeback to summary
public void write(final byte[] b) throws IOException

Overrides java.io.OutputStream.write.

Doc from java.io.OutputStream.write.

Writes b.length bytes from the specified byte array to this output stream. The general contract for write(b) is that it should have exactly the same effect as the call write(b, 0, b.length).

Parameters
b:byte[]

the data.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
writeback to summary
public void write(final byte[] b, final int off, final int len) throws IOException

Overrides java.io.OutputStream.write.

Doc from java.io.OutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this output stream. The general contract for write(b, off, len) is that some of the bytes in the array b are written to the output stream in order; element b[off] is the first byte written and b[off+len-1] is the last byte written by this operation.

If b is null, a NullPointerException is thrown.

If off is negative, or len is negative, or off+len is greater than the length of the array b, then an IndexOutOfBoundsException is thrown.

Parameters
b:byte[]

the data.

off:int

the start offset in the data.

len:int

the number of bytes to write.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs. In particular, an IOException is thrown if the output stream is closed.
writeback to summary
public void write(final int b) throws IOException

Implements abstract java.io.OutputStream.write.

Doc from java.io.OutputStream.write.

Writes the specified byte to this output stream. The general contract for write is that one byte is written to the output stream. The byte to be written is the eight low-order bits of the argument b. The 24 high-order bits of b are ignored.

Parameters
b:int

the byte.

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