|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final byte[] empty
Method Detail |
public byte[] getData(int i) throws java.io.IOException
i
- Buffer index
java.io.IOException
public int getCount()
public int getDataLength(int i)
i
- Buffer index
public int getIndex(long pos)
pos
pos
- public long getLength()
public void close()
public long getDataStart(int i)
i
- Buffer index
n-1 |
||
dataStart(n) = | Σ | getDataLength(i) |
i=0 |
public void clear()
public int getMaxCache()
public void setMaxCache(int max)
public void clear(long start, long end) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |