Package org.apache.sis.internal.storage

Examples of org.apache.sis.internal.storage.ChannelImageInputStream$Mark


                // TODO: we do not create direct buffer yet, but this is something
                // we may want to consider in a future SIS version.
            }
            final String name = getStorageName();
            if (asImageInputStream) {
                asDataInput = new ChannelImageInputStream(name, channel, buffer, false);
            } else {
                asDataInput = new ChannelDataInput(name, channel, buffer, false);
            }
        }
        addView(ChannelDataInput.class, asDataInput);
View Full Code Here


            if (c == null) {
                asDataInput = ImageIO.createImageInputStream(storage);
            } else if (c instanceof DataInput) {
                asDataInput = (DataInput) c;
            } else {
                asDataInput = new ChannelImageInputStream(c);
                if (views.put(ChannelDataInput.class, asDataInput) != c) {
                    throw new ConcurrentModificationException();
                }
            }
        }
View Full Code Here

                // TODO: we do not create direct buffer yet, but this is something
                // we may want to consider in a future SIS version.
            }
            final String name = getStorageName();
            if (asImageInputStream) {
                asDataInput = new ChannelImageInputStream(name, channel, buffer, false);
            } else {
                asDataInput = new ChannelDataInput(name, channel, buffer, false);
            }
            addViewToClose(asDataInput, channel);
        }
View Full Code Here

                addViewToClose(asDataInput, storage);
            } else if (c instanceof DataInput) {
                asDataInput = (DataInput) c;
                // No call to 'addViewToClose' because the instance already exists.
            } else {
                asDataInput = new ChannelImageInputStream(c);
                if (views.put(ChannelDataInput.class, asDataInput) != c) { // Replace the previous instance.
                    throw new ConcurrentModificationException();
                }
                addViewToClose(asDataInput, c.channel);
            }
View Full Code Here

TOP

Related Classes of org.apache.sis.internal.storage.ChannelImageInputStream$Mark

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.