FileDocCategorySizeDatePackage
PNGImageReader.javaAPI DocAndroid 1.5 API3766Wed May 06 22:41:54 BST 2009org.apache.harmony.x.imageio.plugins.png

PNGImageReader

public class PNGImageReader extends ImageReader

Fields Summary
ImageInputStream
iis
Constructors Summary
public PNGImageReader(ImageReaderSpi imageReaderSpi)

        super(imageReaderSpi);
    
Methods Summary
public javax.imageio.ImageReadParamgetDefaultReadParam()

        return new ImageReadParam();
    
public intgetHeight(int imageIndex)

        //-- TODO imlement
        throw new UnsupportedOperationException("not implemented yet");
    
public javax.imageio.metadata.IIOMetadatagetImageMetadata(int imageIndex)

        //-- TODO imlement
        throw new UnsupportedOperationException("not implemented yet");
    
public java.util.IteratorgetImageTypes(int imageIndex)

        //-- TODO imlement
        throw new UnsupportedOperationException("not implemented yet");
    
public intgetNumImages(boolean allowSearch)

        //-- TODO imlement
        throw new UnsupportedOperationException("not implemented yet");
    
public javax.imageio.metadata.IIOMetadatagetStreamMetadata()

        //-- TODO imlement
        throw new UnsupportedOperationException("not implemented yet");
    
public intgetWidth(int imageIndex)

        //-- TODO imlement
        throw new UnsupportedOperationException("not implemented yet");
    
public java.awt.image.BufferedImageread(int i, javax.imageio.ImageReadParam imageReadParam)

        if (iis == null) {
            throw new IllegalArgumentException("input stream == null");
        }

        DecodingImageSource source = new IISDecodingImageSource(iis);
        OffscreenImage image = new OffscreenImage(source);
        source.addConsumer(image);
        source.load();
        // The interrupted flag should be cleared because ImageDecoder interrupts
        // current thread while decoding (due its architecture).
        Thread.interrupted();
        return image.getBufferedImage();
    
public java.awt.image.BufferedImageread(int i)

        return read(i, null);
    
public voidsetInput(java.lang.Object input, boolean seekForwardOnly, boolean ignoreMetadata)

        super.setInput(input, seekForwardOnly, ignoreMetadata);
        iis = (ImageInputStream) input;