Package org.geoserver.wps.process

Examples of org.geoserver.wps.process.StreamRawData


    @Override
    public Object decode(final InputStream input) throws Exception {
        LOGGER.warning("Creating raw data out of a plain input stream, "
                + "this won't work with asynch requests and won't provide the mime type provided");
        return new StreamRawData(AbstractRawData.BINARY_MIME, input);
    }
View Full Code Here


        if (asynchronous) {
            File file = resourceManager.getTemporaryFile(".bin");
            FileUtils.copyInputStreamToFile(input, file);
            return new FileRawData(file, mimeType);
        } else {
            return new StreamRawData(mimeType, input);
        }
    }
View Full Code Here

TOP

Related Classes of org.geoserver.wps.process.StreamRawData

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.