public class RAMFile extends Object
Modifier and Type | Field and Description |
---|---|
protected ArrayList<byte[]> |
buffers |
protected long |
sizeInBytes |
Constructor and Description |
---|
RAMFile() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
addBuffer(int size) |
protected byte[] |
getBuffer(int index) |
long |
getLength() |
long |
getSizeInBytes() |
protected byte[] |
newBuffer(int size)
Expert: allocate a new buffer.
|
protected int |
numBuffers() |
protected void |
setLength(long length) |
protected ArrayList<byte[]> buffers
protected long sizeInBytes
public long getLength()
protected void setLength(long length)
protected final byte[] addBuffer(int size)
protected final byte[] getBuffer(int index)
protected final int numBuffers()
protected byte[] newBuffer(int size)
size
- size of allocated buffer.public long getSizeInBytes()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.