public class CacheLoaderChunkInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected int |
indexInBuffer |
Constructor and Description |
---|
CacheLoaderChunkInputStream(org.infinispan.persistence.spi.CacheLoader<String,byte[]> blobCache,
String key,
int chunkSize,
long totalSize)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
mark, markSupported, read, reset
protected int indexInBuffer
protected byte[] buffer
public CacheLoaderChunkInputStream(org.infinispan.persistence.spi.CacheLoader<String,byte[]> blobCache, String key, int chunkSize, long totalSize)
blobCache
- the blob cachekey
- the keychunkSize
- the chunk sizetotalSize
- the total sizepublic int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int available()
available
in class InputStream
public final long skip(long n)
skip
in class InputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.