public final class RecordFactoryInputStream
extends java.lang.Object
HSSFEventFactory
/
HSSFListener
and have new records pushed to them, but this does allow for a "pull" style of coding.
(一种获取完整记录的基于流的方法,内存占用尽可能低。这处理从 RecordInputStream 读取,将数据转换为完整记录,处理继续记录等。大多数用户应该使用 HSSFEventFactory / HSSFListener 并将新记录推送给他们,但这确实允许“拉”式编码。)
Constructor and Description |
---|
RecordFactoryInputStream(java.io.InputStream in, boolean shouldIncludeContinueRecords) |
Modifier and Type | Method and Description |
---|---|
Record |
nextRecord() |
public RecordFactoryInputStream(java.io.InputStream in, boolean shouldIncludeContinueRecords)
in
- the InputStream to read from
(in - 要读取的 InputStream)
shouldIncludeContinueRecords
- caller can pass
false
if loose
ContinueRecord
s should be skipped (this is sometimes useful in event based processing).
(shouldIncludeContinueRecords - 如果应该跳过松散的 ContinueRecords,调用者可以传递 false(这在基于事件的处理中有时很有用)。)
public Record nextRecord()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.