@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public abstract class IOExceptionSeekableByteChannel extends DecoratingSeekableByteChannel
IOException
in a protected field for later use.| Modifier and Type | Field and Description |
|---|---|
protected IOException |
exception
The nullable last I/O exception.
|
delegate| Modifier | Constructor and Description |
|---|---|
protected |
IOExceptionSeekableByteChannel(SeekableByteChannel channel)
Constructs a new I/O exception seekable byte channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
long |
position() |
SeekableByteChannel |
position(long newPosition) |
int |
read(ByteBuffer dst) |
long |
size() |
SeekableByteChannel |
truncate(long size) |
int |
write(ByteBuffer src) |
toString@CheckForNull protected IOException exception
protected IOExceptionSeekableByteChannel(@Nullable SeekableByteChannel channel)
channel - the nullable seekable byte channel to decorate.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class DecoratingSeekableByteChannelIOExceptionpublic 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 © 2004-2011 Schlichtherle IT Services. All Rights Reserved.