Examples of StreamConverter


Examples of org.pentaho.platform.plugin.services.importexport.StreamConverter

    RepositoryFile schema =
        repository.getFile( ETC_MONDRIAN_JCR_FOLDER + RepositoryFile.SEPARATOR + catalogName + RepositoryFile.SEPARATOR
            + "schema.xml" );
    IRepositoryFileData data =
        new StreamConverter().convert(
            repoFileBundle.getInputStream(), repoFileBundle.getCharset(), repoFileBundle.getMimeType() );
    if ( schema == null ) {
      repository.createFile( catalog.getId(), repoFileBundle.getFile(), data, null );
    } else {
      repository.updateFile( schema, data, null );
View Full Code Here

Examples of org.pentaho.platform.plugin.services.importexport.StreamConverter

  @Test
  public void testBrowserDownload() {
    final String text = "abcdefg";

    // mock converters map
    StreamConverter streamConverter = new StreamConverter( repo );
    Map<String, Converter> converterMap = new HashMap<String, Converter>();
    converterMap.put( "txt", streamConverter );

    // stub DefaultExportProcessor
    DefaultExportHandler defaultExportHandler = new DefaultExportHandler();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.