Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.hssf.model
Class RecordStream

    java.lang.Object
      org.apache.poi.hssf.model.RecordStream

    public final class RecordStream

extends java.lang.Object

Simplifies iteration over a sequence of `Record` objects.

Author:
  Josh Micich

Constructor Summary
`RecordStream(java.util.List records, int startIx)`
`RecordStream(java.util.List inputList, int startIndex, int endIx)` Creates a RecordStream bounded by startIndex and endIndex

Method Summary
`int` | `getCountRead()`
`Record` | `getNext()`
`boolean` | `hasNext()`
`java.lang.Class` | `peekNextClass()`
`int` | `peekNextSid()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RecordStream

    public RecordStream(java.util.List inputList,
                        int startIndex,
                        int endIx)

  Creates a RecordStream bounded by startIndex and endIndex

### RecordStream

    public RecordStream(java.util.List records,
                        int startIx)

Method Detail

### hasNext

    public boolean hasNext()

### getNext

    public Record getNext()

### peekNextClass

    public java.lang.Class peekNextClass()

  Returns:
    the `Class` of the next Record. `null` if this stream is exhausted.

### peekNextSid

    public int peekNextSid()

  Returns:
    -1 if at end of records

### getCountRead

    public int getCountRead()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD