| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv InputStream | decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] passwordBytes, final int maxMemoryLimitInKb)
Implements abstract org. |
| pack-priv OutputStream | encode(final OutputStream out, final Object options)
Overrides org. |
| pack-priv byte[] | getOptionsAsProperties(final Object options)
Overrides org. |
| pack-priv static byte[] | |
| pack-priv static byte[] | |
| pack-priv static byte[] | Returns: encoded characterscharacters to encode chars)Convenience method that encodes Unicode characters into bytes in UTF-16 (little-endian byte order) charset |
| AES256SHA256Decoder | back to summary |
|---|---|
| pack-priv AES256SHA256Decoder() | |
| decode | back to summary |
|---|---|
| pack-priv InputStream decode(final String archiveName, final InputStream in, final long uncompressedLength, final Coder coder, final byte[] passwordBytes, final int maxMemoryLimitInKb) Implements abstract org. Doc from org. 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 Overrides org. Doc from org. 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 Overrides org. Doc from org. Gets property bytes to write in a Folder block.
| |
| sha256Password | back to summary |
|---|---|
| pack-priv static byte[] sha256Password(final byte[] password, final int numCyclesPower, final byte[] salt) | |
| sha256Password | back to summary |
|---|---|
| pack-priv static byte[] sha256Password(final char[] password, final int numCyclesPower, final byte[] salt) | |
| utf16Decode | back to summary |
|---|---|
| pack-priv static byte[] utf16Decode(final char[] chars) Convenience method that encodes Unicode characters into bytes in UTF-16 (little-endian byte order) charset
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private CipherInputStream | |
| private final Coder | |
| private final InputStream | |
| private boolean | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| private | AES256SHA256DecoderInputStream(final InputStream in, final Coder coder, final String archiveName, final byte[] passwordBytes)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| private CipherInputStream | |
| public int | read()
Implements abstract java. |
| public int | read(final byte[]
the buffer into which the data is read. b, final int the start offset in array off, final int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| archiveName | back to summary |
|---|---|
| private final String archiveName | |
| cipherInputStream | back to summary |
|---|---|
| private CipherInputStream cipherInputStream | |
| coder | back to summary |
|---|---|
| private final Coder coder | |
| in | back to summary |
|---|---|
| private final InputStream in | |
| isInitialized | back to summary |
|---|---|
| private boolean isInitialized | |
| passwordBytes | back to summary |
|---|---|
| private final byte[] passwordBytes | |
| AES256SHA256DecoderInputStream | back to summary |
|---|---|
| private AES256SHA256DecoderInputStream(final InputStream in, final Coder coder, final String archiveName, final byte[] passwordBytes) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| init | back to summary |
|---|---|
| private CipherInputStream init() throws IOException | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int | |
| private final CipherOutputStream | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | flush()
Overrides java. Implements java. |
| private void | |
| 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. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(final int
the b)byte.Implements abstract java. |
| cipherBlockBuffer | back to summary |
|---|---|
| private final byte[] cipherBlockBuffer | |
| cipherBlockSize | back to summary |
|---|---|
| private final int cipherBlockSize | |
| cipherOutputStream | back to summary |
|---|---|
| private final CipherOutputStream cipherOutputStream | |
| count | back to summary |
|---|---|
| private int count | |
| AES256SHA256DecoderOutputStream | back to summary |
|---|---|
| private AES256SHA256DecoderOutputStream(final AES256Options opts, final OutputStream out) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| flushBuffer | back to summary |
|---|---|
| private void flushBuffer() throws IOException | |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |