private static final class MemFileChannel.ReadOnlyChannel extends MemFileChannel
| Modifier | Constructor and Description |
|---|---|
private |
ReadOnlyChannel(MemFileChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
long |
transferFrom(java.nio.channels.ReadableByteChannel src,
long position,
long count) |
java.nio.channels.FileChannel |
truncate(long newSize) |
int |
write(java.nio.ByteBuffer src,
long position) |
force, implCloseChannel, lock, map, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, position, position, read, read, read, size, transferTo, transferTo, transferTo, transferTo, tryLock, write, writebegin, close, end, isOpenprivate ReadOnlyChannel(MemFileChannel channel)
public int write(java.nio.ByteBuffer src,
long position)
throws java.io.IOException
write in class MemFileChanneljava.io.IOExceptionpublic java.nio.channels.FileChannel truncate(long newSize)
throws java.io.IOException
truncate in interface java.nio.channels.SeekableByteChanneltruncate in class MemFileChanneljava.io.IOExceptionpublic long transferFrom(java.nio.channels.ReadableByteChannel src,
long position,
long count)
throws java.io.IOException
transferFrom in class MemFileChanneljava.io.IOException