public class RAMFile extends Object implements Serializable
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 |
getLastModified() |
long |
getLength() |
long |
getSizeInBytes() |
protected byte[] |
newBuffer(int size)
Expert: allocate a new buffer.
|
protected int |
numBuffers() |
protected void |
setLastModified(long lastModified) |
protected void |
setLength(long length) |
protected ArrayList<byte[]> buffers
protected long sizeInBytes
public long getLength()
protected void setLength(long length)
public long getLastModified()
protected void setLastModified(long lastModified)
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()