org.deegree.coverage.raster.cache
Class ByteBufferPool
java.lang.Object
org.deegree.coverage.raster.cache.ByteBufferPool
public class ByteBufferPool
- extends Object
The ByteBufferPool
will be the central place for buffering byte buffers used for rasters. Currently only
new byte buffers are created, no pooling is done.
- Version:
- $Revision: 22038 $, $Date: 2010-01-20 15:05:28 +0100 (Mi, 20 Jan 2010) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
Method Summary |
static ByteBuffer |
allocate(int size,
boolean directAllocation)
|
static ByteBuffer |
allocate(int size,
boolean direct,
boolean forCache)
Frees up raster memory and than allocates the ByteBuffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
requestedMemory
static long requestedMemory
ByteBufferPool
public ByteBufferPool()
allocate
public static ByteBuffer allocate(int size,
boolean direct,
boolean forCache)
- Frees up raster memory and than allocates the ByteBuffer.
- Parameters:
size
- direct
- forCache
-
- Returns:
- an allocated byte buffer of the given size.
allocate
public static ByteBuffer allocate(int size,
boolean directAllocation)
- Parameters:
size
- directAllocation
- if the allocation should be direct
- Returns:
- the newly created ByteBuffer.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>