Class RecordFactoryInputStream


  • public final class RecordFactoryInputStream
    extends Object
    A stream based way to get at complete records, with as low a memory footprint as possible. This handles reading from a RecordInputStream, turning the data into full records, processing continue records etc. Most users should use HSSFEventFactory / HSSFListener and have new records pushed to them, but this does allow for a "pull" style of coding.
    • Constructor Detail

      • RecordFactoryInputStream

        public RecordFactoryInputStream​(InputStream in,
                                        boolean shouldIncludeContinueRecords)
        Parameters:
        in - the InputStream to read from
        shouldIncludeContinueRecords - caller can pass false if loose ContinueRecords should be skipped (this is sometimes useful in event based processing).
    • Method Detail

      • nextRecord

        public Record nextRecord()
        Returns:
        the next (complete) record from the stream, or null if there are no more.