From ff387016c2d95162aa6bf6735be47c559751b530 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 3 Dec 2021 08:53:58 -0500 Subject: [PATCH] Javadoc. --- .../commons/io/input/BufferedFileChannelInputStream.java | 1 + .../org/apache/commons/io/input/ReadAheadInputStream.java | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java b/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java index f9e6ad79be1..80c630600d7 100644 --- a/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java +++ b/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java @@ -157,6 +157,7 @@ public synchronized int read(final byte[] b, final int offset, int len) throws I * Checks whether data is left to be read from the input stream. * * @return true if data is left, false otherwise + * @throws IOException if an I/O error occurs. */ private boolean refill() throws IOException { if (!byteBuffer.hasRemaining()) { diff --git a/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java b/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java index d1cddd83f10..4d34357091e 100644 --- a/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java +++ b/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java @@ -283,7 +283,11 @@ public int read(final byte[] b, final int offset, int len) throws IOException { return len; } - /** Read data from underlyingInputStream to readAheadBuffer asynchronously. */ + /** + * Read data from underlyingInputStream to readAheadBuffer asynchronously. + * + * @throws IOException if an I/O error occurs. + */ private void readAsync() throws IOException { stateChangeLock.lock(); final byte[] arr; @@ -398,6 +402,7 @@ public long skip(final long n) throws IOException { * * @param n the number of bytes to be skipped. * @return the actual number of bytes skipped. + * @throws IOException if an I/O error occurs. */ private long skipInternal(final long n) throws IOException { assert stateChangeLock.isLocked();