| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| protected | AbstractCoder(final Class<?>...
types that can be used as options for this codec. optionClasses)Constructs a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract InputStream | Returns: a stream that reads from in using the configured coder and password.Decodes using stream that reads from in using the configured coder and password. |
| pack-priv OutputStream | Returns: a stream that writes to out using the given configuration.Encodes using a stream that writes to out using the given configuration. |
| pack-priv byte[] | Returns: property bytes to write in a Folder block.Gets property bytes to write in a Folder block. |
| pack-priv Object | Returns: configuration options that have been used to create the given InputStream from the given CoderGets configuration options that have been used to create the given InputStream from the given Coder. |
| pack-priv boolean | Returns: whether this method can extract options from the given object.Tests whether this method can extract options from the given object. |
| protected static int |
| optionClasses | back to summary |
|---|---|
| private final Class<?>[] optionClasses | |
| AbstractCoder | back to summary |
|---|---|
| protected AbstractCoder(final Class<?>... optionClasses) Constructs a new instance.
| |
| decode | back to summary |
|---|---|
| pack-priv abstract InputStream decode(String archiveName, InputStream in, long uncompressedLength, Coder coder, byte[] password, int maxMemoryLimitInKb) throws IOException Decodes using stream that reads from in using the configured coder and password.
| |
| encode | back to summary |
|---|---|
| pack-priv OutputStream encode(final OutputStream out, final Object options) throws IOException Encodes using a stream that writes to out using the given configuration.
| |
| getOptionsAsProperties | back to summary |
|---|---|
| pack-priv byte[] getOptionsAsProperties(final Object options) throws IOException Gets property bytes to write in a Folder block.
| |
| getOptionsFromCoder | back to summary |
|---|---|
| pack-priv Object getOptionsFromCoder(final Coder coder, final InputStream in) throws IOException Gets configuration options that have been used to create the given InputStream from the given Coder.
| |
| isOptionInstance | back to summary |
|---|---|
| pack-priv boolean isOptionInstance(final Object opts) Tests whether this method can extract options from the given object.
| |
| toInt | back to summary |
|---|---|
| protected static int toInt(final Object options, final int defaultValue) If the option represents a number, return its integer value, otherwise return the given default value.
| |