HSSFEventFactory /
HSSFListener and have new records pushed to
them, but this does allow for a "pull" style of coding.
| Modifier and Type | Class and Description |
|---|---|
| private static class | RecordFactoryInputStream.
Keeps track of the sizes of the initial records up to and including |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private DrawingRecord | _lastDrawingRecord
The most recent DrawingRecord seen |
| private Record | _lastRecord
The most recent record that we gave to the user |
| private boolean | |
| private final RecordInputStream | |
| private final boolean | |
| private Record[] | _unreadRecordBuffer
Temporarily stores a group of |
| private int | _unreadRecordIndex
used to help iterating over the unread records |
| Access | Constructor and Description |
|---|---|
| public | RecordFactoryInputStream(InputStream
the InputStream to read from in, boolean caller can pass shouldIncludeContinueRecords)false if loose
ContinueRecords should be skipped (this is sometimes useful in event based
processing).
|
| Modifier and Type | Method and Description |
|---|---|
| private Record | Returns: the nextRecord from the multiple record group as expanded from
a recently read MulRKRecord. null if not present.
|
| public Record | |
| private Record | Returns: the next available record, ornull if
this pass didn't return a record that's
suitable for returning (eg was a continue record).
|
| _bofDepth | back to summary |
|---|---|
| private int _bofDepth | |
| _lastDrawingRecord | back to summary |
|---|---|
| private DrawingRecord _lastDrawingRecord The most recent DrawingRecord seen | |
| _lastRecord | back to summary |
|---|---|
| private Record _lastRecord The most recent record that we gave to the user | |
| _lastRecordWasEOFLevelZero | back to summary |
|---|---|
| private boolean _lastRecordWasEOFLevelZero | |
| _recStream | back to summary |
|---|---|
| private final RecordInputStream _recStream | |
| _shouldIncludeContinueRecords | back to summary |
|---|---|
| private final boolean _shouldIncludeContinueRecords | |
| _unreadRecordBuffer | back to summary |
|---|---|
| private Record[] _unreadRecordBuffer Temporarily stores a group of | |
| _unreadRecordIndex | back to summary |
|---|---|
| private int _unreadRecordIndex used to help iterating over the unread records | |
| RecordFactoryInputStream | back to summary |
|---|---|
public RecordFactoryInputStream(InputStream in, boolean shouldIncludeContinueRecords)
| |
| getNextUnreadRecord | back to summary |
|---|---|
private Record getNextUnreadRecord()
| |
| nextRecord | back to summary |
|---|---|
public Record nextRecord()
| |
| readNextRecord | back to summary |
|---|---|
private Record readNextRecord()
| |
FilePassRecord
Needed for protected files because each byte is encrypted with respect to its absolute
position from the start of the stream.
| Modifier and Type | Field and Description |
|---|---|
| private final FilePassRecord | |
| private final boolean | |
| private final int | |
| private final Record |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RecordInputStream | |
| public Record | Returns: last record scanned while looking for encryption info. This will typically be the first or second record read. Possiblynull
if stream was empty
|
| public boolean | |
| public boolean |
| _filePassRec | back to summary |
|---|---|
| private final FilePassRecord _filePassRec | |
| _hasBOFRecord | back to summary |
|---|---|
| private final boolean _hasBOFRecord | |
| _initialRecordsSize | back to summary |
|---|---|
| private final int _initialRecordsSize | |
| _lastRecord | back to summary |
|---|---|
| private final Record _lastRecord | |
| StreamEncryptionInfo | back to summary |
|---|---|
| public StreamEncryptionInfo(RecordInputStream rs, List<Record> outputRecs) | |
| createDecryptingStream | back to summary |
|---|---|
public RecordInputStream createDecryptingStream(InputStream original)
| |
| getLastRecord | back to summary |
|---|---|
public Record getLastRecord()
| |
| hasBOFRecord | back to summary |
|---|---|
| public boolean hasBOFRecord()
| |
| hasEncryption | back to summary |
|---|---|
| public boolean hasEncryption() | |