org.apache.poi.hdgf.streams
Class Stream

java.lang.Object
  extended by org.apache.poi.hdgf.streams.Stream
Direct Known Subclasses:
ChunkStream, PointerContainingStream, StringsStream, UnknownStream

public abstract class Stream
extends java.lang.Object

Base of all Streams within a HDGF document. Streams are what hold the data (the metadata of a stream is held in the pointer that points to the stream). A stream may be stored compressed or un-compressed on the disk, but that doesn't appear to change their use.


Method Summary
 int _getContentsLength()
           
 StreamStore _getStore()
           
static Stream createStream(Pointer pointer, byte[] documentData, ChunkFactory chunkFactory, PointerFactory pointerFactory)
          Uses the pointer to locate a Stream within the document data, and creates it.
 Pointer getPointer()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPointer

public Pointer getPointer()

_getStore

public StreamStore _getStore()

_getContentsLength

public int _getContentsLength()

createStream

public static Stream createStream(Pointer pointer,
                                  byte[] documentData,
                                  ChunkFactory chunkFactory,
                                  PointerFactory pointerFactory)
Uses the pointer to locate a Stream within the document data, and creates it.

Parameters:
pointer - The Pointer to create a stream for
documentData - The raw document data