@NotThreadSafe public abstract class DisconnectingSeekableChannel extends DecoratingSeekableChannel
channel| Modifier | Constructor and Description |
|---|---|
protected |
DisconnectingSeekableChannel() |
protected |
DisconnectingSeekableChannel(SeekableByteChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
abstract boolean |
isOpen() |
long |
position() |
SeekableByteChannel |
position(long newPosition) |
int |
read(ByteBuffer dst) |
long |
size() |
SeekableByteChannel |
truncate(long size) |
int |
write(ByteBuffer src) |
toStringcheckOpenprotected DisconnectingSeekableChannel()
protected DisconnectingSeekableChannel(SeekableByteChannel channel)
public abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class DecoratingSeekableChannelIOExceptionpublic abstract boolean isOpen()
isOpen in interface ChannelisOpen in class DecoratingSeekableChannelpublic long position()
throws IOException
position in interface SeekableByteChannelposition in class DecoratingSeekableChannelIOExceptionpublic SeekableByteChannel position(long newPosition) throws IOException
position in interface SeekableByteChannelposition in class DecoratingSeekableChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in interface SeekableByteChannelread in class DecoratingSeekableChannelIOExceptionpublic long size()
throws IOException
size in interface SeekableByteChannelsize in class DecoratingSeekableChannelIOExceptionpublic SeekableByteChannel truncate(long size) throws IOException
truncate in interface SeekableByteChanneltruncate in class DecoratingSeekableChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface SeekableByteChannelwrite in interface WritableByteChannelwrite in class DecoratingSeekableChannelIOExceptionCopyright © 2012–2014 Schlichtherle IT Services. All rights reserved.