- 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 void
close()
Optional<Sheet>
findSheet(String name)
Optional<Sheet>
getActiveSheet()
Sheet
getFirstSheet()
List<String>
getFormats()
Map<String,String>
getNumFmtIdToFormat()
Optional<Sheet>
getSheet(int index)
Stream<Sheet>
getSheets()
boolean
isDate1904()
static boolean
isOLE2Header(byte[] bytes)
static boolean
isOOXMLZipHeader(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:
close
in interfaceAutoCloseable
- Specified by:
close
in 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)
-
-