Examples of ImageInputStreamAdapter


Examples of it.geosolutions.imageio.stream.input.ImageInputStreamAdapter

               
                // Check if the input object is an InputStream
                if (source instanceof InputStream) {
                    // Use of the ImageInputStreamAdapter
                    if (isAggressiveInputStreamSupported()) {
                        stream = new ImageInputStreamAdapter((InputStream) source);
                    } else {
                        stream = new MemoryCacheImageInputStream((InputStream) source);
                    }

                    // Image reading
View Full Code Here

Examples of org.apache.xmlgraphics.image.loader.util.ImageInputStreamAdapter

     */
    public InputStream getInputStream() {
        if (this.iin == null) {
            return null;
        } else {
            return new ImageInputStreamAdapter(this.iin);
        }
    }
View Full Code Here

Examples of org.apache.xmlgraphics.image.loader.util.ImageInputStreamAdapter

        in.mark();
        try {
            Rectangle2D bbox = null;
            DSCParser parser;
            try {
                parser = new DSCParser(new ImageInputStreamAdapter(in));
                outerLoop:
                while (parser.hasNext()) {
                    DSCEvent event = parser.nextEvent();
                    switch (event.getEventType()) {
                    case DSCParserConstants.HEADER_COMMENT:
View Full Code Here

Examples of org.apache.xmlgraphics.image.loader.util.ImageInputStreamAdapter

     */
    public InputStream getInputStream() {
        if (this.iin == null) {
            return null;
        } else {
            return new ImageInputStreamAdapter(this.iin);
        }
    }
View Full Code Here

Examples of org.apache.xmlgraphics.image.loader.util.ImageInputStreamAdapter

        in.mark();
        try {
            Rectangle2D bbox = null;
            DSCParser parser;
            try {
                parser = new DSCParser(new ImageInputStreamAdapter(in));
                outerLoop:
                while (parser.hasNext()) {
                    DSCEvent event = parser.nextEvent();
                    switch (event.getEventType()) {
                    case DSCParserConstants.HEADER_COMMENT:
View Full Code Here

Examples of org.dcm4che3.imageio.stream.ImageInputStreamAdapter

            return;

        if (iis == null)
            throw new IllegalStateException("Input not set");

        dis = new DicomInputStream(new ImageInputStreamAdapter(iis));
        dis.setIncludeBulkData(IncludeBulkData.URI);
        dis.setBulkDataDescriptor(BulkDataDescriptor.PIXELDATA);
        dis.setURI("java:iis"); // avoid copy of pixeldata to temporary file
        Attributes fmi = dis.readFileMetaInformation();
        Attributes ds = dis.readDataset(-1, -1);
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.