public class BufferedChannel
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.concurrent.atomic.AtomicLong |
PAGES_READ |
java.nio.file.Path |
path |
static boolean |
VERBOSE |
| Constructor and Description |
|---|
BufferedChannel(java.nio.file.Path path,
java.nio.channels.FileChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
free() |
int |
read(java.nio.ByteBuffer dst,
long position) |
byte |
readByte(long position) |
char |
readChar(long position) |
double |
readDouble(long position) |
float |
readFloat(long position) |
int |
readInt(long position) |
long |
readLong(long position) |
short |
readShort(long position) |
long |
size() |
long |
transferTo(long start,
long end,
java.nio.channels.WritableByteChannel dst) |
void |
truncate(long size) |
void |
write(java.nio.ByteBuffer buf,
long position) |
public static boolean VERBOSE
public static final java.util.concurrent.atomic.AtomicLong PAGES_READ
public final java.nio.file.Path path
public BufferedChannel(java.nio.file.Path path,
java.nio.channels.FileChannel channel)
public void free()
public void close()
public long size()
public long transferTo(long start,
long end,
java.nio.channels.WritableByteChannel dst)
public void truncate(long size)
public byte readByte(long position)
public short readShort(long position)
public char readChar(long position)
public int readInt(long position)
public long readLong(long position)
public float readFloat(long position)
public double readDouble(long position)
public void write(java.nio.ByteBuffer buf,
long position)
public int read(java.nio.ByteBuffer dst,
long position)