public class FileChannelWrapper extends Object implements SeekableByteChannel
Constructor and Description |
---|
FileChannelWrapper(FileChannel ch) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isOpen() |
long |
position() |
int |
read(ByteBuffer arg0) |
SeekableByteChannel |
setPosition(long newPosition) |
long |
size() |
SeekableByteChannel |
truncate(long size) |
int |
write(ByteBuffer arg0) |
public FileChannelWrapper(FileChannel ch) throws FileNotFoundException
FileNotFoundException
public int read(ByteBuffer arg0) throws IOException
read
in interface ReadableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
public int write(ByteBuffer arg0) throws IOException
write
in interface WritableByteChannel
IOException
public long position() throws IOException
position
in interface SeekableByteChannel
IOException
public SeekableByteChannel setPosition(long newPosition) throws IOException
setPosition
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
Copyright © 2019. All rights reserved.