--- old/src/java.desktop/share/classes/com/sun/imageio/plugins/png/PNGImageReader.java 2020-07-24 13:47:31.498845700 +0530 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/png/PNGImageReader.java 2020-07-24 13:47:30.501428200 +0530 @@ -198,6 +198,7 @@ super(originatingProvider); } + @Override public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata) { @@ -1520,6 +1521,7 @@ } } + @Override public int getNumImages(boolean allowSearch) throws IIOException { if (stream == null) { throw new IllegalStateException("No input source set!"); @@ -1531,6 +1533,7 @@ return 1; } + @Override public int getWidth(int imageIndex) throws IIOException { if (imageIndex != 0) { throw new IndexOutOfBoundsException("imageIndex != 0!"); @@ -1541,6 +1544,7 @@ return metadata.IHDR_width; } + @Override public int getHeight(int imageIndex) throws IIOException { if (imageIndex != 0) { throw new IndexOutOfBoundsException("imageIndex != 0!"); @@ -1551,6 +1555,7 @@ return metadata.IHDR_height; } + @Override public Iterator getImageTypes(int imageIndex) throws IIOException { @@ -1785,6 +1790,7 @@ * After this changes we should override getRawImageType() * to return last element of image types list. */ + @Override public ImageTypeSpecifier getRawImageType(int imageIndex) throws IOException { @@ -1796,15 +1802,18 @@ return raw; } + @Override public ImageReadParam getDefaultReadParam() { return new ImageReadParam(); } + @Override public IIOMetadata getStreamMetadata() throws IIOException { return null; } + @Override public IIOMetadata getImageMetadata(int imageIndex) throws IIOException { if (imageIndex != 0) { throw new IndexOutOfBoundsException("imageIndex != 0!"); @@ -1813,6 +1822,7 @@ return metadata; } + @Override public BufferedImage read(int imageIndex, ImageReadParam param) throws IIOException { if (imageIndex != 0) { @@ -1832,6 +1842,7 @@ return theImage; } + @Override public void reset() { super.reset(); resetStreamSettings();