Package org.apache.poi.hdgf.streams
Class Stream
java.lang.Object
org.apache.poi.hdgf.streams.Stream
- Direct Known Subclasses:
ChunkStream
,PointerContainingStream
,StringsStream
,UnknownStream
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Stream
(Pointer pointer, StreamStore store) Creates a new Stream, having already used the pointer to build a store -
Method Summary
Modifier and TypeMethodDescriptionint
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.protected StreamStore
getStore()
-
Constructor Details
-
Stream
Creates a new Stream, having already used the pointer to build a store
-
-
Method Details
-
getPointer
-
getStore
-
_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 fordocumentData
- The raw document data
-