java.io.Closeable
, java.lang.AutoCloseable
, LittleEndianInput
@Internal public abstract class ChunkedCipherInputStream extends LittleEndianInputStream
Constructor | Description |
---|---|
ChunkedCipherInputStream(LittleEndianInput stream,
long size,
int chunkSize) |
Modifier and Type | Method | Description |
---|---|---|
int |
available() |
|
protected abstract javax.crypto.Cipher |
initCipherForBlock(javax.crypto.Cipher existing,
int block) |
|
void |
mark(int readlimit) |
|
boolean |
markSupported() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
|
void |
reset() |
|
long |
skip(long n) |
readByte, readDouble, readFully, readFully, readInt, readLong, readShort, readUByte, readUInt, readUShort
public ChunkedCipherInputStream(LittleEndianInput stream, long size, int chunkSize) throws java.security.GeneralSecurityException
java.security.GeneralSecurityException
protected abstract javax.crypto.Cipher initCipherForBlock(javax.crypto.Cipher existing, int block) throws java.security.GeneralSecurityException
java.security.GeneralSecurityException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public int available()
available
in interface LittleEndianInput
available
in class LittleEndianInputStream
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public void mark(int readlimit)
mark
in class java.io.FilterInputStream
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.