StreamStorepublic class StreamStore extends Object Holds the representation of the stream on-disk, and
handles de-compressing it as required.
In future, may also handle writing it back out again |
Fields Summary |
---|
private byte[] | contents |
Constructors Summary |
---|
protected StreamStore(byte[] data, int offset, int length)Creates a new, non compressed Stream Store
contents = new byte[length];
System.arraycopy(data, offset, contents, 0, length);
|
Methods Summary |
---|
public byte[] | _getContents() return contents;
| protected void | copyBlockHeaderToContents()
| protected byte[] | getContents() return contents;
| protected void | prependContentsWith(byte[] b)
byte[] newContents = new byte[contents.length + b.length];
System.arraycopy(b, 0, newContents, 0, b.length);
System.arraycopy(contents, 0, newContents, b.length, contents.length);
contents = newContents;
|
|