Serializablepublic class RAMFile extends Object implements Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected ArrayList<byte[]> |
buffers |
|
protected long |
sizeInBytes |
| Constructor | Description |
|---|---|
RAMFile() |
| Modifier and Type | Method | 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()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.