コード例 #1
0
ファイル: OdfWorkbook.java プロジェクト: MarsChan/learngit
  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
ファイル: OdfWorkbook.java プロジェクト: MarsChan/learngit
  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);
    }
  }