public OdfWorkbook(InputStream inputStream, String encoding) throws KettleException { this.encoding = encoding; try { document = OdfSpreadsheetDocument.loadDocument(inputStream); } catch (Exception e) { throw new KettleException(e); } }
public OdfWorkbook(String filename, String encoding) throws KettleException { this.filename = filename; this.encoding = encoding; try { document = OdfSpreadsheetDocument.loadDocument(KettleVFS.getInputStream(filename)); } catch (Exception e) { throw new KettleException(e); } }