- java.lang.Object
-
- org.dhatim.fastexcel.reader.ReadableWorkbook
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ReadableWorkbook extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description ReadableWorkbook(File inputFile)ReadableWorkbook(File inputFile, ReadingOptions readingOptions)ReadableWorkbook(InputStream inputStream)Note: will load the whole xlsx file into memory, (but will not uncompress it in memory)ReadableWorkbook(InputStream inputStream, ReadingOptions readingOptions)Note: will load the whole xlsx file into memory, (but will not uncompress it in memory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Optional<Sheet>findSheet(String name)Optional<Sheet>getActiveSheet()SheetgetFirstSheet()List<String>getFormats()Map<String,String>getNumFmtIdToFormat()Optional<Sheet>getSheet(int index)Stream<Sheet>getSheets()booleanisDate1904()static booleanisOLE2Header(byte[] bytes)static booleanisOOXMLZipHeader(byte[] bytes)
-
-
-
Constructor Detail
-
ReadableWorkbook
public ReadableWorkbook(File inputFile) throws IOException
- Throws:
IOException
-
ReadableWorkbook
public ReadableWorkbook(File inputFile, ReadingOptions readingOptions) throws IOException
- Throws:
IOException
-
ReadableWorkbook
public ReadableWorkbook(InputStream inputStream) throws IOException
Note: will load the whole xlsx file into memory, (but will not uncompress it in memory)- Throws:
IOException
-
ReadableWorkbook
public ReadableWorkbook(InputStream inputStream, ReadingOptions readingOptions) throws IOException
Note: will load the whole xlsx file into memory, (but will not uncompress it in memory)- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isDate1904
public boolean isDate1904()
-
getFirstSheet
public Sheet getFirstSheet()
-
isOOXMLZipHeader
public static boolean isOOXMLZipHeader(byte[] bytes)
-
isOLE2Header
public static boolean isOLE2Header(byte[] bytes)
-
-