--- old/src/java.desktop/share/classes/com/sun/imageio/plugins/png/PNGImageReader.java 2020-07-30 10:24:36.468861000 +0530 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/png/PNGImageReader.java 2020-07-30 10:24:35.119467000 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -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();