Package com.volantis.map.retriever

Examples of com.volantis.map.retriever.Representation


                ImageProcessor processor =
                    ImageProcessorFactory.getInstance().
                        createImageProcessor(ToolFactory.getInstance(),
                                             ImageWriterFactory.getInstance());

                Representation representation =
                    ImageLoader.load(descriptor.getInputParameters().getParameterValue(ParameterNames.SOURCE_URL),
                            retriever, request, descriptor);
                inputStream = new NoCloseSeekableInputStream(representation.getSeekableInputStream());
                new PreservationParamsBuilder().process(request, descriptor);

                // now get the input stream for the watermark image.
                // @todo later this could probably be cached.
                if (descriptor.getInputParameters().containsName(
                    ParameterNames.WATERMARK_URL)) {
                    Representation watermarkRepresentation =
                        ImageLoader.load(descriptor.getInputParameters().getParameterValue(ParameterNames.WATERMARK_URL),
                                retriever, request, descriptor);
                    watermarkStream =
                        new NoCloseSeekableInputStream(watermarkRepresentation.getSeekableInputStream());
                    descriptor.getInputParameters().setObject(
                        ParameterNames.WATERMARK_INPUT_STREAM, watermarkStream);
                }

                outputData =
View Full Code Here


                throw new MimeTypeRetrieverException("no source url provided");
            }

            URL url = new URL(urlString);
       
            Representation representation =
                resourceRetriever.execute(url, null);
           
            return representation.getFileType();
           
        } catch (MalformedURLException e) {
            throw new MimeTypeRetrieverException(e);
        } catch (ResourceRetrieverException e) {
            throw new MimeTypeRetrieverException(e);
View Full Code Here

TOP

Related Classes of com.volantis.map.retriever.Representation

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.