public class ReadableWorkbook extends Object implements Closeable
| Constructor and 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)
|
| Modifier and Type | Method and 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) |
public ReadableWorkbook(File inputFile) throws IOException
IOExceptionpublic ReadableWorkbook(File inputFile, ReadingOptions readingOptions) throws IOException
IOExceptionpublic ReadableWorkbook(InputStream inputStream) throws IOException
IOExceptionpublic ReadableWorkbook(InputStream inputStream, ReadingOptions readingOptions) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isDate1904()
public Sheet getFirstSheet()
public static boolean isOOXMLZipHeader(byte[] bytes)
public static boolean isOLE2Header(byte[] bytes)
Copyright © 2023. All rights reserved.