Package no.kommune.bergen.soa.svarut.util

Examples of no.kommune.bergen.soa.svarut.util.InputStreamDataSource


  @Override
  public DokumentRs retrieveContent( UserContext userContext, String id ) {
    try {
      InputStream inputStream = serviceDelegate.retrieveContent( id, JuridiskEnhetFactory.create( userContext ) );
      InputStreamDataSource dataSource = new InputStreamDataSource( inputStream, "application/pdf", id );
      DataHandler dataHandler = new DataHandler( dataSource );
      DokumentRs rs = new DokumentRs();
      rs.setFilnavn( id );
      rs.setData( dataHandler );
      return rs;
View Full Code Here

TOP

Related Classes of no.kommune.bergen.soa.svarut.util.InputStreamDataSource

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.