public class SeekableByteChannelFileBasedImpl extends Object implements SeekableByteChannel
Constructor and Description |
---|
SeekableByteChannelFileBasedImpl(FileChannel 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) |
public SeekableByteChannelFileBasedImpl(FileChannel channel)
public long position() throws IOException
position
in interface SeekableByteChannel
IOException
public SeekableByteChannel position(long newPosition) throws IOException
position
in interface SeekableByteChannel
IOException
public long size() throws IOException
size
in interface SeekableByteChannel
IOException
public SeekableByteChannel truncate(long size) throws IOException
truncate
in interface SeekableByteChannel
IOException
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.