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-io.git
The following commit(s) were added to refs/heads/master by this push:
new ff38701 Javadoc.
ff38701 is described below
commit ff387016c2d95162aa6bf6735be47c559751b530
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Dec 3 08:53:58 2021 -0500
Javadoc.
---
.../apache/commons/io/input/BufferedFileChannelInputStream.java | 1 +
.../java/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 f9e6ad7..80c6306 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 final class BufferedFileChannelInputStream extends
InputStream {
* 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 d1cddd8..4d34357 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 class ReadAheadInputStream extends InputStream {
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 class ReadAheadInputStream extends InputStream {
*
* @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();