Package com.mku.salmon.streams
Class SalmonFileInputStream.CacheBuffer
java.lang.Object
com.mku.salmon.streams.SalmonFileInputStream.CacheBuffer
- Enclosing class:
- SalmonFileInputStream
Class will be used to cache decrypted data that can later be read via the ReadAt() method
without requesting frequent decryption reads.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
buffer
public byte[] buffer -
startPos
public long startPos -
count
public long count
-
-
Constructor Details
-
CacheBuffer
public CacheBuffer(int bufferSize) Instantiate a cache buffer.- Parameters:
bufferSize
- The buffer size
-
-
Method Details
-
clear
public void clear()Clear the buffer.
-