Skip to content

Commit

Permalink
Javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 3, 2021
1 parent 1505133 commit ff38701
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit ff38701

Please sign in to comment.