Class PoiWorkbook
- java.lang.Object
-
- org.pentaho.di.trans.steps.excelinput.poi.PoiWorkbook
-
- All Implemented Interfaces:
AutoCloseable
,org.pentaho.di.core.spreadsheet.KWorkbook
public class PoiWorkbook extends Object implements org.pentaho.di.core.spreadsheet.KWorkbook
-
-
Constructor Summary
Constructors Constructor Description PoiWorkbook(InputStream inputStream, String encoding)
PoiWorkbook(String filename, String encoding)
PoiWorkbook(String filename, String encoding, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
String
getEncoding()
String
getFilename()
int
getNumberOfSheets()
org.pentaho.di.core.spreadsheet.KSheet
getSheet(int sheetNr)
org.pentaho.di.core.spreadsheet.KSheet
getSheet(String sheetName)
String
getSheetName(int sheetNr)
String[]
getSheetNames()
-
-
-
Constructor Detail
-
PoiWorkbook
public PoiWorkbook(String filename, String encoding) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
PoiWorkbook
public PoiWorkbook(String filename, String encoding, String password) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
PoiWorkbook
public PoiWorkbook(InputStream inputStream, String encoding) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.pentaho.di.core.spreadsheet.KWorkbook
-
getSheet
public org.pentaho.di.core.spreadsheet.KSheet getSheet(String sheetName)
- Specified by:
getSheet
in interfaceorg.pentaho.di.core.spreadsheet.KWorkbook
-
getSheetNames
public String[] getSheetNames()
- Specified by:
getSheetNames
in interfaceorg.pentaho.di.core.spreadsheet.KWorkbook
-
getFilename
public String getFilename()
-
getEncoding
public String getEncoding()
-
getNumberOfSheets
public int getNumberOfSheets()
- Specified by:
getNumberOfSheets
in interfaceorg.pentaho.di.core.spreadsheet.KWorkbook
-
getSheet
public org.pentaho.di.core.spreadsheet.KSheet getSheet(int sheetNr)
- Specified by:
getSheet
in interfaceorg.pentaho.di.core.spreadsheet.KWorkbook
-
getSheetName
public String getSheetName(int sheetNr)
- Specified by:
getSheetName
in interfaceorg.pentaho.di.core.spreadsheet.KWorkbook
-
-