public class StoreChunkOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected org.infinispan.loaders.CacheStore |
blobCache |
protected int |
chunkIndex |
static int |
CHUNKSIZE |
protected String |
keyPrefix |
| Constructor and Description |
|---|
StoreChunkOutputStream(org.infinispan.loaders.CacheStore blobCache,
String keyPrefix)
Prepare to store the OutputStream in the given CacheStore
with the given prefix
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getNumberChunks() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writepublic static final int CHUNKSIZE
protected final org.infinispan.loaders.CacheStore blobCache
protected final String keyPrefix
protected int chunkIndex
public StoreChunkOutputStream(org.infinispan.loaders.CacheStore blobCache,
String keyPrefix)
blobCache - keyPrefix - public int getNumberChunks()
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.