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
Iterator over sheet data.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the shapes associated with this sheet, an empty list or null if there is an exceptionReturns the comments associated with this sheet, or null if there aren't anyReturns name of the current sheetbooleanhasNext()Returns true if the iteration has more elements.next()Returns input stream of the next sheet in the iterationvoidremove()We're read only, so remove isn't supportedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
hasNext
public boolean hasNext()Returns true if the iteration has more elements.- Specified by:
hasNextin interfaceIterator<InputStream>- Returns:
- true if the iterator has more elements.
-
next
Returns input stream of the next sheet in the iteration- Specified by:
nextin interfaceIterator<InputStream>- Returns:
- input stream of the next sheet in the iteration
-
getSheetName
Returns name of the current sheet- Returns:
- name of the current sheet
-
getSheetComments
Returns the comments associated with this sheet, or null if there aren't any -
getShapes
Returns the shapes associated with this sheet, an empty list or null if there is an exception -
getSheetPart
-
remove
public void remove()We're read only, so remove isn't supported- Specified by:
removein interfaceIterator<InputStream>
-