Class XSSFReader.SheetIterator
- java.lang.Object
-
- org.apache.poi.xssf.eventusermodel.XSSFReader.SheetIterator
-
- All Implemented Interfaces:
Iterator<InputStream>
- Direct Known Subclasses:
XSSFBReader.SheetIterator
- Enclosing class:
- XSSFReader
public static class XSSFReader.SheetIterator extends Object implements Iterator<InputStream>
Iterator over sheet data.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<XSSFShape>
getShapes()
Returns the shapes associated with this sheet, an empty list or null if there is an exceptionCommentsTable
getSheetComments()
Returns the comments associated with this sheet, or null if there aren't anyString
getSheetName()
Returns name of the current sheetPackagePart
getSheetPart()
boolean
hasNext()
Returns true if the iteration has more elements.InputStream
next()
Returns input stream of the next sheet in the iterationvoid
remove()
We're read only, so remove isn't supported-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if the iteration has more elements.- Specified by:
hasNext
in interfaceIterator<InputStream>
- Returns:
- true if the iterator has more elements.
-
next
public InputStream next()
Returns input stream of the next sheet in the iteration- Specified by:
next
in interfaceIterator<InputStream>
- Returns:
- input stream of the next sheet in the iteration
-
getSheetName
public String getSheetName()
Returns name of the current sheet- Returns:
- name of the current sheet
-
getSheetComments
public CommentsTable getSheetComments()
Returns the comments associated with this sheet, or null if there aren't any
-
getShapes
public List<XSSFShape> getShapes()
Returns the shapes associated with this sheet, an empty list or null if there is an exception
-
getSheetPart
public PackagePart getSheetPart()
-
remove
public void remove()
We're read only, so remove isn't supported- Specified by:
remove
in interfaceIterator<InputStream>
-
-