Package com.github.pjfanning.xlsx.impl
Class StreamingWorkbookReader
- java.lang.Object
-
- com.github.pjfanning.xlsx.impl.StreamingWorkbookReader
-
- All Implemented Interfaces:
AutoCloseable,Iterable<org.apache.poi.ss.usermodel.Sheet>
public class StreamingWorkbookReader extends Object implements Iterable<org.apache.poi.ss.usermodel.Sheet>, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description StreamingWorkbookReader(StreamingReader.Builder builder)StreamingWorkbookReader(org.apache.poi.xssf.model.SharedStringsTable sst, org.apache.poi.openxml4j.opc.OPCPackage pkg, StreamingSheetReader reader, StreamingReader.Builder builder)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StreamingSheetReaderfirst()List<Map<String,String>>getSheetProperties()voidinit(File f)voidinit(InputStream is)Iterator<org.apache.poi.ss.usermodel.Sheet>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
StreamingWorkbookReader
@Deprecated public StreamingWorkbookReader(org.apache.poi.xssf.model.SharedStringsTable sst, org.apache.poi.openxml4j.opc.OPCPackage pkg, StreamingSheetReader reader, StreamingReader.Builder builder)
Deprecated.This constructor exists only so the StreamingReader can instantiate a StreamingWorkbook using its own reader implementation. Do not use going forward.- Parameters:
sst- The SST data for this workbookpkg- The POI package that should be closed when this workbook is closedreader- A single streaming reader instancebuilder- The builder containing all options
-
StreamingWorkbookReader
public StreamingWorkbookReader(StreamingReader.Builder builder)
-
-
Method Detail
-
first
public StreamingSheetReader first()
-
init
public void init(InputStream is)
-
init
public void init(File f)
-
iterator
public Iterator<org.apache.poi.ss.usermodel.Sheet> iterator()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-