jut.io
Interface InputStreamCache.ByteArrayCache

Enclosing class:
InputStreamCache

public static interface InputStreamCache.ByteArrayCache

provider interface for large byte arrays that can be used as memory cache.


Method Summary
 byte[] getBuffer()
           
 void releaseBuffer(byte[] buffer)
          reclaim a byte array previously released via the getBuffer() method.
 

Method Detail

getBuffer

byte[] getBuffer()
Returns:
a large byte array that can be used as memory cache or null if the VM runs out of free memory.

releaseBuffer

void releaseBuffer(byte[] buffer)
reclaim a byte array previously released via the getBuffer() method.

Parameters:
buffer - - the byte array to reclaim.