com.hazelcast.nio
Class DynamicByteBuffer

java.lang.Object
  extended by com.hazelcast.nio.DynamicByteBuffer

public final class DynamicByteBuffer
extends Object


Constructor Summary
DynamicByteBuffer(byte[] array)
           
DynamicByteBuffer(byte[] array, int offset, int length)
           
DynamicByteBuffer(ByteBuffer buffer)
           
DynamicByteBuffer(int cap, boolean useDirectBuffer)
           
 
Method Summary
 byte[] array()
           
 int capacity()
           
 DynamicByteBuffer clear()
           
 void close()
           
 DynamicByteBuffer compact()
           
 DynamicByteBuffer duplicate()
           
 DynamicByteBuffer flip()
           
 byte get()
           
 DynamicByteBuffer get(byte[] dst)
           
 DynamicByteBuffer 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)
           
 short getShort()
           
 short getShort(int index)
           
 boolean hasRemaining()
           
 boolean isDirect()
           
 int limit()
           
 DynamicByteBuffer limit(int newLimit)
           
 DynamicByteBuffer mark()
           
 ByteOrder order()
           
 DynamicByteBuffer order(ByteOrder order)
           
 int position()
           
 DynamicByteBuffer position(int newPosition)
           
 DynamicByteBuffer put(byte b)
           
 DynamicByteBuffer put(byte[] src)
           
 DynamicByteBuffer put(byte[] src, int offset, int length)
           
 DynamicByteBuffer put(ByteBuffer src)
           
 DynamicByteBuffer put(int index, byte b)
           
 DynamicByteBuffer putChar(char value)
           
 DynamicByteBuffer putChar(int index, char value)
           
 DynamicByteBuffer putDouble(double value)
           
 DynamicByteBuffer putDouble(int index, double value)
           
 DynamicByteBuffer putFloat(float value)
           
 DynamicByteBuffer putFloat(int index, float value)
           
 DynamicByteBuffer putInt(int value)
           
 DynamicByteBuffer putInt(int index, int value)
           
 DynamicByteBuffer putLong(int index, long value)
           
 DynamicByteBuffer putLong(long value)
           
 DynamicByteBuffer putShort(int index, short value)
           
 DynamicByteBuffer putShort(short value)
           
 int remaining()
           
 DynamicByteBuffer reset()
           
 DynamicByteBuffer rewind()
           
 DynamicByteBuffer slice()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicByteBuffer

public DynamicByteBuffer(int cap,
                         boolean useDirectBuffer)

DynamicByteBuffer

public DynamicByteBuffer(byte[] array)

DynamicByteBuffer

public DynamicByteBuffer(byte[] array,
                         int offset,
                         int length)

DynamicByteBuffer

public DynamicByteBuffer(ByteBuffer buffer)
Method Detail

compact

public DynamicByteBuffer compact()

get

public byte get()

get

public byte get(int index)

get

public DynamicByteBuffer get(byte[] dst)

get

public DynamicByteBuffer get(byte[] dst,
                             int offset,
                             int length)

getChar

public char getChar()

getChar

public char getChar(int index)

getDouble

public double getDouble()

getDouble

public double getDouble(int index)

getFloat

public float getFloat()

getFloat

public float getFloat(int index)

getInt

public int getInt()

getInt

public int getInt(int index)

getLong

public long getLong()

getLong

public long getLong(int index)

getShort

public short getShort()

getShort

public short getShort(int index)

put

public DynamicByteBuffer put(byte b)

put

public DynamicByteBuffer put(int index,
                             byte b)

put

public DynamicByteBuffer put(byte[] src)

put

public DynamicByteBuffer put(byte[] src,
                             int offset,
                             int length)

put

public DynamicByteBuffer put(ByteBuffer src)

putChar

public DynamicByteBuffer putChar(int index,
                                 char value)

putChar

public DynamicByteBuffer putChar(char value)

putDouble

public DynamicByteBuffer putDouble(int index,
                                   double value)

putDouble

public DynamicByteBuffer putDouble(double value)

putFloat

public DynamicByteBuffer putFloat(int index,
                                  float value)

putFloat

public DynamicByteBuffer putFloat(float value)

putInt

public DynamicByteBuffer putInt(int index,
                                int value)

putInt

public DynamicByteBuffer putInt(int value)

putLong

public DynamicByteBuffer putLong(int index,
                                 long value)

putLong

public DynamicByteBuffer putLong(long value)

putShort

public DynamicByteBuffer putShort(int index,
                                  short value)

putShort

public DynamicByteBuffer putShort(short value)

duplicate

public DynamicByteBuffer duplicate()

slice

public DynamicByteBuffer slice()

clear

public DynamicByteBuffer clear()

flip

public DynamicByteBuffer flip()

limit

public int limit()

limit

public DynamicByteBuffer limit(int newLimit)

mark

public DynamicByteBuffer mark()

position

public int position()

position

public DynamicByteBuffer position(int newPosition)

remaining

public int remaining()

reset

public DynamicByteBuffer reset()

rewind

public DynamicByteBuffer rewind()

capacity

public int capacity()

hasRemaining

public boolean hasRemaining()

array

public byte[] array()

order

public ByteOrder order()

order

public DynamicByteBuffer order(ByteOrder order)

close

public void close()

isDirect

public boolean isDirect()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.