@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, toString
protected DisconnectingSeekableByteChannel(@Nullable SeekableByteChannel channel)
public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in class DecoratingSeekableByteChannel
IOException
public abstract boolean isOpen()
isOpen
in interface Channel
isOpen
in class DecoratingSeekableByteChannel
public long position() throws IOException
position
in interface SeekableByteChannel
position
in class DecoratingSeekableByteChannel
IOException
public SeekableByteChannel position(long newPosition) throws IOException
position
in interface SeekableByteChannel
position
in class DecoratingSeekableByteChannel
IOException
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
read
in interface SeekableByteChannel
read
in class DecoratingSeekableByteChannel
IOException
public long size() throws IOException
size
in interface SeekableByteChannel
size
in class DecoratingSeekableByteChannel
IOException
public SeekableByteChannel truncate(long size) throws IOException
truncate
in interface SeekableByteChannel
truncate
in class DecoratingSeekableByteChannel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface SeekableByteChannel
write
in interface WritableByteChannel
write
in class DecoratingSeekableByteChannel
IOException
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.