public abstract class AbstractChunkFileChannel extends Object implements JslipcChannel, InterruptibleChannel, JslipcBinman
JslipcChannel
s.JslipcChannel.JslipcChannelState
Modifier and Type | Field and Description |
---|---|
protected static String |
CHUNK_FILE_NAME |
Constructor and Description |
---|
AbstractChunkFileChannel(File directory) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkClosed() |
void |
cleanUpOnClose()
Attempts to clean up any resources on
Closeable.close() if they are no longer needed. |
void |
close() |
protected File |
getCloseMarker() |
protected File |
getDirectory() |
protected org.jslipc.channel.file.chunk.AbstractChunkFileChannel.ChunkFilenameFilter |
getFilenameFilter() |
JslipcChannel.JslipcChannelState |
getState() |
boolean |
isOpen() |
protected static final String CHUNK_FILE_NAME
public AbstractChunkFileChannel(File directory)
protected File getDirectory()
protected org.jslipc.channel.file.chunk.AbstractChunkFileChannel.ChunkFilenameFilter getFilenameFilter()
protected void checkClosed() throws ClosedChannelException
ClosedChannelException
public JslipcChannel.JslipcChannelState getState()
getState
in interface JslipcChannel
state
of the channel.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in interface InterruptibleChannel
IOException
protected File getCloseMarker()
public void cleanUpOnClose()
JslipcBinman
Closeable.close()
if they are no longer needed.cleanUpOnClose
in interface JslipcBinman
Copyright © 2014. All Rights Reserved.