FakeFileChannel
Fake file channel to use by in-memory and ZIP file systems.
| Methods |
| void |
force(boolean metaData)
|
| void |
force(boolean metaData) throws IOException
|
| void |
implCloseChannel()
|
| void |
implCloseChannel() throws IOException
|
| FileLock |
lock(long position, long size, boolean shared)
|
| FileLock |
lock(long position, long size, boolean shared) throws IOException
|
| MappedByteBuffer |
map(FileChannel.MapMode mode, long position, long size)
|
| MappedByteBuffer |
map(FileChannel.MapMode mode, long position, long size) throws IOException
|
| long |
position()
|
| long |
position() throws IOException
|
| FileChannel |
position(long newPosition)
|
| FileChannel |
position(long newPosition) throws IOException
|
| int |
read(ByteBuffer dst)
|
| int |
read(ByteBuffer dst) throws IOException
|
| int |
read(ByteBuffer dst, long position)
|
| int |
read(ByteBuffer dst, long position) throws IOException
|
| long |
read(ByteBuffer[] dsts, int offset, int length)
|
| long |
read(ByteBuffer[] dsts, int offset, int length) throws IOException
|
| long |
size()
|
| long |
size() throws IOException
|
| long |
transferFrom(ReadableByteChannel src, long position, long count)
|
| long |
transferFrom(ReadableByteChannel src, long position, long count) throws IOException
|
| long |
transferTo(long position, long count, WritableByteChannel target)
|
| long |
transferTo(long position, long count, WritableByteChannel target) throws IOException
|
| FileChannel |
truncate(long size)
|
| FileChannel |
truncate(long size) throws IOException
|
| FileLock |
tryLock(long position, long size, boolean shared)
|
| FileLock |
tryLock(long position, long size, boolean shared) throws IOException
|
| int |
write(ByteBuffer src)
|
| int |
write(ByteBuffer src) throws IOException
|
| int |
write(ByteBuffer src, long position)
|
| int |
write(ByteBuffer src, long position) throws IOException
|
| long |
write(ByteBuffer[] srcs, int offset, int len)
|
| long |
write(ByteBuffer[] srcs, int offset, int len) throws IOException
|
|