@NotThreadSafe public abstract class DisconnectingSeekableByteChannel extends DecoratingSeekableByteChannel
delegate| Modifier | Constructor and Description |
|---|---|
protected |
DisconnectingSeekableByteChannel(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) |
checkOpen, toStringprotected DisconnectingSeekableByteChannel(@Nullable SeekableByteChannel channel)
public abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class DecoratingSeekableByteChannelIOExceptionpublic abstract boolean isOpen()
isOpen in interface ChannelisOpen in class DecoratingSeekableByteChannelpublic long position()
throws IOException
position in interface SeekableByteChannelposition in class DecoratingSeekableByteChannelIOExceptionpublic SeekableByteChannel position(long newPosition) throws IOException
position in interface SeekableByteChannelposition in class DecoratingSeekableByteChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in interface SeekableByteChannelread in class DecoratingSeekableByteChannelIOExceptionpublic long size()
throws IOException
size in interface SeekableByteChannelsize in class DecoratingSeekableByteChannelIOExceptionpublic SeekableByteChannel truncate(long size) throws IOException
truncate in interface SeekableByteChanneltruncate in class DecoratingSeekableByteChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface SeekableByteChannelwrite in interface WritableByteChannelwrite in class DecoratingSeekableByteChannelIOExceptionCopyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.