FileDocCategorySizeDatePackage
StreamStore.javaAPI DocApache Poi 3.0.11817Tue Jun 19 21:53:38 BST 2007org.apache.poi.hdgf.streams

StreamStore

public 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 voidcopyBlockHeaderToContents()

protected byte[]getContents()

 return contents; 
protected voidprependContentsWith(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;