@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public abstract class DecoratingSeekableByteChannel extends Object implements SeekableByteChannel
| Modifier and Type | Field and Description |
|---|---|
protected SeekableByteChannel |
delegate
The nullable decorated seekable byte channel.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DecoratingSeekableByteChannel(SeekableByteChannel channel)
Constructs a new decorating 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() |
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
SeekableByteChannel |
truncate(long size) |
int |
write(ByteBuffer src) |
@Nullable protected SeekableByteChannel delegate
protected DecoratingSeekableByteChannel(@CheckForNull
SeekableByteChannel channel)
channel - the seekable byte channel to wrap in this decorator.public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in interface SeekableByteChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface SeekableByteChannelwrite in interface WritableByteChannelIOExceptionpublic long position()
throws IOException
position in interface SeekableByteChannelIOExceptionpublic SeekableByteChannel position(long newPosition) throws IOException
position in interface SeekableByteChannelIOExceptionpublic long size()
throws IOException
size in interface SeekableByteChannelIOExceptionpublic SeekableByteChannel truncate(long size) throws IOException
truncate in interface SeekableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.