Class WeakMappedByteBuffer

java.lang.Object
org.ujmp.core.util.io.WeakMappedByteBuffer

public class WeakMappedByteBuffer extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static final WeakMappedByteBuffer[] create(RandomAccessFile randomAccessFile) throws IOException
      Throws:
      IOException
    • getOrCreateByteBuffer

      public ByteBuffer getOrCreateByteBuffer()
    • slice

      public ByteBuffer slice()
    • duplicate

      public ByteBuffer duplicate()
    • asReadOnlyBuffer

      public ByteBuffer asReadOnlyBuffer()
    • get

      public byte get()
    • put

      public ByteBuffer put(byte b)
    • get

      public byte get(int index)
    • put

      public ByteBuffer put(int index, byte b)
    • compact

      public ByteBuffer compact()
    • isDirect

      public boolean isDirect()
    • getChar

      public char getChar()
    • putChar

      public ByteBuffer putChar(char value)
    • getChar

      public char getChar(int index)
    • putChar

      public ByteBuffer putChar(int index, char value)
    • asCharBuffer

      public CharBuffer asCharBuffer()
    • getShort

      public short getShort()
    • putShort

      public ByteBuffer putShort(short value)
    • getShort

      public short getShort(int index)
    • putShort

      public ByteBuffer putShort(int index, short value)
    • asShortBuffer

      public ShortBuffer asShortBuffer()
    • getInt

      public int getInt()
    • putInt

      public ByteBuffer putInt(int value)
    • getInt

      public int getInt(int index)
    • putInt

      public ByteBuffer putInt(int index, int value)
    • asIntBuffer

      public IntBuffer asIntBuffer()
    • getLong

      public long getLong()
    • putLong

      public ByteBuffer putLong(long value)
    • getLong

      public long getLong(int index)
    • putLong

      public ByteBuffer putLong(int index, long value)
    • asLongBuffer

      public LongBuffer asLongBuffer()
    • getFloat

      public float getFloat()
    • putFloat

      public ByteBuffer putFloat(float value)
    • getFloat

      public float getFloat(int index)
    • putFloat

      public ByteBuffer putFloat(int index, float value)
    • asFloatBuffer

      public FloatBuffer asFloatBuffer()
    • getDouble

      public double getDouble()
    • putDouble

      public ByteBuffer putDouble(double value)
    • getDouble

      public double getDouble(int index)
    • putDouble

      public ByteBuffer putDouble(int index, double value)
    • asDoubleBuffer

      public DoubleBuffer asDoubleBuffer()
    • isReadOnly

      public boolean isReadOnly()
    • capacity

      public long capacity()
    • position

      public void position(int offset)
    • put

      public void put(byte[] bytes, int offset, int length)
    • get

      public void get(byte[] dst, int offset, int length)
    • rewind

      public Buffer rewind()
    • reset

      public Buffer reset()