Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.uio.buffer
Interface BufferManager  view BufferManager download BufferManager.java

All Known Subinterfaces:
MutableBufferManager
All Known Implementing Classes:
AbstractBufferManager, DefaultBufferManager, MutableRABufferManager, MutableRAFBufferManager, OutputStreamBufferManager

public interface BufferManager

BufferManager.java


Field Summary
static byte[] empty
           
 
Method Summary
 void clear()
          clear all buffered data without closing
 void clear(long start, long end)
          all buffered data in stream between start and end will be cleared
 void close()
          Allows to free all possibly used resources
 int getCount()
          Get count of Buffer objects in this BufferManager
 byte[] getData(int i)
          Get data (as byte array) from i'th Buffer
 int getDataLength(int i)
          Get length of i'th Buffer
 long getDataStart(int i)
          get start of i'th Buffer in byte
 int getIndex(long pos)
          Get index of Buffer which contains pos
 long getLength()
          Get length of data of all Buffer together
 int getMaxCache()
          get max buffer count
 void setMaxCache(int max)
          set max buffer count
 

Field Detail

empty

public static final byte[] empty
Method Detail

getData

public byte[] getData(int i)
               throws java.io.IOException
Get data (as byte array) from i'th Buffer


getCount

public int getCount()
Get count of Buffer objects in this BufferManager


getDataLength

public int getDataLength(int i)
Get length of i'th Buffer


getIndex

public int getIndex(long pos)
Get index of Buffer which contains pos


getLength

public long getLength()
Get length of data of all Buffer together


close

public void close()
Allows to free all possibly used resources


getDataStart

public long getDataStart(int i)
get start of i'th Buffer in byte


clear

public void clear()
clear all buffered data without closing


getMaxCache

public int getMaxCache()
get max buffer count


setMaxCache

public void setMaxCache(int max)
set max buffer count


clear

public void clear(long start,
                  long end)
           throws java.io.IOException
all buffered data in stream between start and end will be cleared