public class ReadableChunkFileChannel extends AbstractChunkFileChannel implements ReadableJslipcByteChannel
ReadableJslipcByteChannel
implementation that reads chunk files written into
the given directory by a WritableChunkFileChannel
. Read chunks will be deleted
immediately to save disk space.JslipcChannel.JslipcChannelState
CHUNK_FILE_NAME
Constructor and Description |
---|
ReadableChunkFileChannel(File directory) |
Modifier and Type | Method and Description |
---|---|
protected FileChannel |
getChunkFileChannel() |
protected File |
getNextChunk() |
protected void |
markChunkRead() |
int |
read(ByteBuffer dst) |
checkClosed, cleanUpOnClose, close, getCloseMarker, getDirectory, getFilenameFilter, getState, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getState
public ReadableChunkFileChannel(File directory)
protected FileChannel getChunkFileChannel() throws IOException
IOException
protected void markChunkRead() throws IOException
IOException
protected File getNextChunk()
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
IOException
Copyright © 2014. All Rights Reserved.