public class WeakMappedByteBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULTBUFFERSIZE |
| Constructor and Description |
|---|
WeakMappedByteBuffer(FileChannel fileChannel,
FileChannel.MapMode mapMode,
long pos,
int size) |
| Modifier and Type | Method and Description |
|---|---|
CharBuffer |
asCharBuffer() |
DoubleBuffer |
asDoubleBuffer() |
FloatBuffer |
asFloatBuffer() |
IntBuffer |
asIntBuffer() |
LongBuffer |
asLongBuffer() |
ByteBuffer |
asReadOnlyBuffer() |
ShortBuffer |
asShortBuffer() |
long |
capacity() |
ByteBuffer |
compact() |
static WeakMappedByteBuffer[] |
create(RandomAccessFile randomAccessFile) |
ByteBuffer |
duplicate() |
byte |
get() |
void |
get(byte[] dst,
int offset,
int length) |
byte |
get(int index) |
char |
getChar() |
char |
getChar(int index) |
double |
getDouble() |
double |
getDouble(int index) |
float |
getFloat() |
float |
getFloat(int index) |
int |
getInt() |
int |
getInt(int index) |
long |
getLong() |
long |
getLong(int index) |
ByteBuffer |
getOrCreateByteBuffer() |
short |
getShort() |
short |
getShort(int index) |
boolean |
isDirect() |
boolean |
isReadOnly() |
void |
position(int offset) |
ByteBuffer |
put(byte b) |
void |
put(byte[] bytes,
int offset,
int length) |
ByteBuffer |
put(int index,
byte b) |
ByteBuffer |
putChar(char value) |
ByteBuffer |
putChar(int index,
char value) |
ByteBuffer |
putDouble(double value) |
ByteBuffer |
putDouble(int index,
double value) |
ByteBuffer |
putFloat(float value) |
ByteBuffer |
putFloat(int index,
float value) |
ByteBuffer |
putInt(int value) |
ByteBuffer |
putInt(int index,
int value) |
ByteBuffer |
putLong(int index,
long value) |
ByteBuffer |
putLong(long value) |
ByteBuffer |
putShort(int index,
short value) |
ByteBuffer |
putShort(short value) |
Buffer |
reset() |
Buffer |
rewind() |
ByteBuffer |
slice() |
public static final int DEFAULTBUFFERSIZE
public WeakMappedByteBuffer(FileChannel fileChannel, FileChannel.MapMode mapMode, long pos, int size)
public static final WeakMappedByteBuffer[] create(RandomAccessFile randomAccessFile) throws IOException
IOExceptionpublic ByteBuffer getOrCreateByteBuffer()
public ByteBuffer slice()
public ByteBuffer duplicate()
public ByteBuffer asReadOnlyBuffer()
public byte get()
public ByteBuffer put(byte b)
public byte get(int index)
public ByteBuffer put(int index, byte b)
public ByteBuffer compact()
public boolean isDirect()
public char getChar()
public ByteBuffer putChar(char value)
public char getChar(int index)
public ByteBuffer putChar(int index, char value)
public CharBuffer asCharBuffer()
public short getShort()
public ByteBuffer putShort(short value)
public short getShort(int index)
public ByteBuffer putShort(int index, short value)
public ShortBuffer asShortBuffer()
public int getInt()
public ByteBuffer putInt(int value)
public int getInt(int index)
public ByteBuffer putInt(int index, int value)
public IntBuffer asIntBuffer()
public long getLong()
public ByteBuffer putLong(long value)
public long getLong(int index)
public ByteBuffer putLong(int index, long value)
public LongBuffer asLongBuffer()
public float getFloat()
public ByteBuffer putFloat(float value)
public float getFloat(int index)
public ByteBuffer putFloat(int index, float value)
public FloatBuffer asFloatBuffer()
public double getDouble()
public ByteBuffer putDouble(double value)
public double getDouble(int index)
public ByteBuffer putDouble(int index, double value)
public DoubleBuffer asDoubleBuffer()
public boolean isReadOnly()
public long capacity()
public void position(int offset)
public void put(byte[] bytes,
int offset,
int length)
public void get(byte[] dst,
int offset,
int length)
public Buffer rewind()
public Buffer reset()
Copyright © 2015 Universal Java Matrix Package. All rights reserved.