Package org.geoserver.wps.process

Examples of org.geoserver.wps.process.FileRawData


    public Object decode(InputStream input, String mimeType, boolean asynchronous) throws Exception {
        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.FileRawData

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.