Ejemplo n.º 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);
    }
  }
Ejemplo n.º 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);
    }
  }