Search in sources :

Example 1 with InputStreamAdapter

use of com.sun.imageio.plugins.common.InputStreamAdapter in project jdk8u_jdk by JetBrains.

the class PNGImageReader method nextElement.

public InputStream nextElement() {
    try {
        firstTime = false;
        ImageInputStream iis = new SubImageInputStream(stream, length);
        return new InputStreamAdapter(iis);
    } catch (IOException e) {
        return null;
    }
}
Also used : SubImageInputStream(com.sun.imageio.plugins.common.SubImageInputStream) SubImageInputStream(com.sun.imageio.plugins.common.SubImageInputStream) ImageInputStream(javax.imageio.stream.ImageInputStream) InputStreamAdapter(com.sun.imageio.plugins.common.InputStreamAdapter) IIOException(javax.imageio.IIOException) IOException(java.io.IOException)

Aggregations

InputStreamAdapter (com.sun.imageio.plugins.common.InputStreamAdapter)1 SubImageInputStream (com.sun.imageio.plugins.common.SubImageInputStream)1 IOException (java.io.IOException)1 IIOException (javax.imageio.IIOException)1 ImageInputStream (javax.imageio.stream.ImageInputStream)1