@Internal public abstract class ChunkedCipherInputStream extends LittleEndianInputStream
| Constructor and Description |
|---|
ChunkedCipherInputStream(InputStream stream,
long size,
int chunkSize) |
ChunkedCipherInputStream(InputStream stream,
long size,
int chunkSize,
int initialPos) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
long |
getPos() |
Cipher |
initCipherForBlock(int block) |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
readPlain(byte[] b,
int off,
int len)
Used when BIFF header fields (sid, size) are being read.
|
void |
reset() |
void |
setNextRecordSize(int recordSize)
Some ciphers (actually just XOR) are based on the record size,
which needs to be set before decryption
|
long |
skip(long n) |
readByte, readDouble, readFully, readFully, readInt, readLong, readShort, readUByte, readUInt, readUShortclose, readpublic ChunkedCipherInputStream(InputStream stream, long size, int chunkSize) throws GeneralSecurityException
GeneralSecurityExceptionpublic ChunkedCipherInputStream(InputStream stream, long size, int chunkSize, int initialPos) throws GeneralSecurityException
GeneralSecurityExceptionpublic final Cipher initCipherForBlock(int block) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
skip in class FilterInputStreampublic int available()
available in interface LittleEndianInputavailable in class LittleEndianInputStreampublic boolean markSupported()
markSupported in class FilterInputStreampublic void mark(int readlimit)
mark in class FilterInputStreampublic void reset()
reset in class FilterInputStreampublic void readPlain(byte[] b,
int off,
int len)
Cipher instance must step even when unencrypted bytes are readreadPlain in interface LittleEndianInputreadPlain in class LittleEndianInputStreamb - the byte array to receive the bytesoff - the start offset into the byte arraylen - the amount of bytes to fillpublic void setNextRecordSize(int recordSize)
recordSize - the size of the next recordpublic long getPos()
Copyright © 2010 - 2020 Adobe. All Rights Reserved