com.neeve.sto
Class StoBufferManager

java.lang.Object
  extended by com.neeve.sto.StoBufferManager
All Implemented Interfaces:
IStoBufferManager

public final class StoBufferManager
extends Object
implements IStoBufferManager

The default STO buffer manager.

This class serves as the default implementation of IStoBufferManager The user can use this buffer manager implementation wherever it needs a simple buffer manager that allocates byte buffers on demand.


Method Summary
 ByteBuffer allocate(int len)
          Implementation of IStoBufferManager.allocate(int)
static StoBufferManager create()
           
 ByteBuffer last()
          Returns the last allocated buffer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static final StoBufferManager create()

last

public final ByteBuffer last()
Returns the last allocated buffer


allocate

public final ByteBuffer allocate(int len)
Implementation of IStoBufferManager.allocate(int)

Specified by:
allocate in interface IStoBufferManager
Parameters:
len - The length of the buffer to allocate.


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.