public static class XSSFReader.SheetIterator extends Object implements Iterator<InputStream>
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<XSSFReader.XSSFSheetRef> |
sheetIterator
Iterator over CTSheet objects, returns sheets in
logical order. |
protected Map<String,PackagePart> |
sheetMap
Maps relId and the corresponding PackagePart
|
protected XSSFReader.XSSFSheetRef |
xssfSheetRef
Current sheet reference
|
| Modifier | Constructor and Description |
|---|---|
protected |
SheetIterator(PackagePart wb)
Construct a new SheetIterator
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<XSSFReader.XSSFSheetRef> |
createSheetIteratorFromWB(PackagePart wb) |
List<XSSFShape> |
getShapes()
Returns the shapes associated with this sheet,
an empty list or null if there is an exception
|
Comments |
getSheetComments()
Returns the comments associated with this sheet,
or null if there aren't any
|
String |
getSheetName()
Returns name of the current sheet
|
PackagePart |
getSheetPart() |
protected Set<String> |
getSheetRelationships()
Gets string representations of relationships
that are sheet-like.
|
boolean |
hasNext()
Returns
true if the iteration has more elements. |
InputStream |
next()
Returns input stream of the next sheet in the iteration
|
protected Comments |
parseComments(PackagePart commentsPart) |
void |
remove()
We're read only, so remove isn't supported
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected final Map<String,PackagePart> sheetMap
protected XSSFReader.XSSFSheetRef xssfSheetRef
protected final Iterator<XSSFReader.XSSFSheetRef> sheetIterator
logical order.
We can't rely on the Ooxml4J's relationship iterator because it returns objects in physical order,
i.e. as they are stored in the underlying packageprotected SheetIterator(PackagePart wb) throws IOException
wb - package part holding workbook.xmlIOExceptionprotected Iterator<XSSFReader.XSSFSheetRef> createSheetIteratorFromWB(PackagePart wb) throws IOException
IOExceptionprotected Set<String> getSheetRelationships()
public boolean hasNext()
true if the iteration has more elements.hasNext in interface Iterator<InputStream>true if the iterator has more elements.public InputStream next()
next in interface Iterator<InputStream>public String getSheetName()
public Comments getSheetComments()
protected Comments parseComments(PackagePart commentsPart) throws IOException
IOExceptionpublic List<XSSFShape> getShapes()
public PackagePart getSheetPart()
public void remove()
remove in interface Iterator<InputStream>