예제 #1
0
  public OdfWorkbook(InputStream inputStream, String encoding) throws KettleException {
    this.encoding = encoding;

    try {
      document = OdfSpreadsheetDocument.loadDocument(inputStream);
    } catch (Exception e) {
      throw new KettleException(e);
    }
  }
예제 #2
0
  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);
    }
  }