This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit b5316974a015f439549056d5f0c28a62ac663b3c Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jul 1 17:55:11 2023 -0400 Let API return what it found. --- .../java/org/apache/commons/imaging/common/BinaryFunctions.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java b/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java index ba9a2806..a75fd868 100644 --- a/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java +++ b/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java @@ -281,13 +281,13 @@ public final class BinaryFunctions { return false; } - public static void skipBytes(final InputStream is, final long length) throws IOException { - skipBytes(is, length, "Couldn't skip bytes"); + public static long skipBytes(final InputStream is, final long length) throws IOException { + return skipBytes(is, length, "Couldn't skip bytes"); } - public static void skipBytes(final InputStream is, final long length, final String exception) throws IOException { + public static long skipBytes(final InputStream is, final long length, final String exception) throws IOException { try { - IOUtils.skip(is, length); + return IOUtils.skip(is, length); } catch (IOException e) { throw new IOException(exception, e); }