Package org.cishell.app.service.filesaver

Examples of org.cishell.app.service.filesaver.FileSaverService


  }

  private Data convertDatum(Data datum) throws ConversionException, FileSaveException {
    ServiceReference fileSaverServiceReference =
      this.bundleContext.getServiceReference(FileSaverService.class.getName());
    FileSaverService fileSaver =
      (FileSaverService) this.bundleContext.getService(fileSaverServiceReference);

    Converter converter =
      fileSaver.promptForConverter(datum, FileSaverService.ANY_FILE_EXTENSION);

    return converter.convert(datum);
  }
View Full Code Here


        Data[] data, Dictionary<String, Object> parameters, CIShellContext ciShellContext) {
      // TODO Unpack data?
      Data inputData = data[0];
      LogService logger =
        (LogService) ciShellContext.getService(LogService.class.getName());
      FileSaverService fileSaver = (FileSaverService) ciShellContext.getService(
        FileSaverService.class.getName());

        return new Save(inputData, logger, fileSaver);
    }
View Full Code Here

TOP

Related Classes of org.cishell.app.service.filesaver.FileSaverService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.