public abstract class AbstractJslipcFileChannel extends Object implements JslipcChannel, JslipcBinman
JslipcChannel
s.JslipcChannel.JslipcChannelState
Modifier and Type | Field and Description |
---|---|
protected FileChannel |
fileChannel |
Constructor and Description |
---|
AbstractJslipcFileChannel(File file,
String mode) |
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 FileChannel |
getFileChannel() |
JslipcChannel.JslipcChannelState |
getState() |
boolean |
isOpen() |
protected FileChannel fileChannel
public AbstractJslipcFileChannel(File file, String mode) throws IOException
IOException
public void cleanUpOnClose()
JslipcBinman
Closeable.close()
if they are no longer needed.cleanUpOnClose
in interface JslipcBinman
protected FileChannel getFileChannel()
public JslipcChannel.JslipcChannelState getState()
getState
in interface JslipcChannel
state
of the channel.protected void checkClosed() throws ClosedChannelException
ClosedChannelException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
Copyright © 2014. All Rights Reserved.