org.glassfish.grizzly.memory
Class ByteBufferArray

java.lang.Object
  extended by org.glassfish.grizzly.memory.AbstractBufferArray<ByteBuffer>
      extended by org.glassfish.grizzly.memory.ByteBufferArray

public final class ByteBufferArray
extends AbstractBufferArray<ByteBuffer>

Author:
oleksiys

Field Summary
 
Fields inherited from class org.glassfish.grizzly.memory.AbstractBufferArray
clazz
 
Method Summary
static ByteBufferArray create()
           
protected  int getLimit(ByteBuffer buffer)
           
protected  int getPosition(ByteBuffer buffer)
           
 void recycle()
           
protected  void setPositionLimit(ByteBuffer buffer, int position, int limit)
           
 
Methods inherited from class org.glassfish.grizzly.memory.AbstractBufferArray
add, add, getArray, getInitialBufferSize, getInitialLimit, getInitialPosition, reset, restore, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ByteBufferArray create()

recycle

public void recycle()
Overrides:
recycle in class AbstractBufferArray<ByteBuffer>

setPositionLimit

protected void setPositionLimit(ByteBuffer buffer,
                                int position,
                                int limit)
Specified by:
setPositionLimit in class AbstractBufferArray<ByteBuffer>

getPosition

protected int getPosition(ByteBuffer buffer)
Specified by:
getPosition in class AbstractBufferArray<ByteBuffer>

getLimit

protected int getLimit(ByteBuffer buffer)
Specified by:
getLimit in class AbstractBufferArray<ByteBuffer>


Copyright © 2012 Oracle Corporation. All Rights Reserved.