public abstract class SynchronousFileIOChannel extends AbstractFileIOChannel
FileIOChannel.Enumerator, FileIOChannel.ID
fileChannel, id, LOG
Modifier | Constructor and Description |
---|---|
protected |
SynchronousFileIOChannel(FileIOChannel.ID channelID,
boolean writeEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the channel.
|
boolean |
isClosed()
Checks whether the channel has been closed.
|
closeAndDelete, deleteChannel, getChannelID, getNioFileChannel, getSize
protected SynchronousFileIOChannel(FileIOChannel.ID channelID, boolean writeEnabled) throws IOException
IOException
public boolean isClosed()
FileIOChannel
isClosed
in interface FileIOChannel
isClosed
in class AbstractFileIOChannel
public void close() throws IOException
FileIOChannel
close
in interface FileIOChannel
close
in class AbstractFileIOChannel
IOException
- Thrown, if an error occurred while waiting for pending requests.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.