Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Aug 6, 2024
1 parent a1ef098 commit 07f1df6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/org/apache/commons/io/input/ProxyInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public boolean markSupported() {
/**
* Invokes the delegate's {@link InputStream#read()} method unless the stream is closed.
*
* @return the byte read or -1 if the end of stream
* @return the byte read or {@link IOUtils#EOF EOF} if the end of stream
* @throws IOException if an I/O error occurs.
*/
@Override
Expand All @@ -229,7 +229,7 @@ public int read() throws IOException {
* Invokes the delegate's {@link InputStream#read(byte[])} method.
*
* @param b the buffer to read the bytes into
* @return the number of bytes read or EOF if the end of stream
* @return the number of bytes read or {@link IOUtils#EOF EOF} if the end of stream
* @exception IOException
* <ul>
* <li>If the first byte cannot be read for any reason other than the end of the file,
Expand All @@ -256,7 +256,7 @@ public int read(final byte[] b) throws IOException {
* @param b the buffer to read the bytes into
* @param off The start offset
* @param len The number of bytes to read
* @return the number of bytes read or -1 if the end of stream
* @return the number of bytes read or {@link IOUtils#EOF EOF} if the end of stream
* @throws IOException if an I/O error occurs.
*/
@Override
Expand Down Expand Up @@ -313,11 +313,12 @@ public long skip(final long n) throws IOException {
}

/**
* Unwraps this instance by returning the underlying InputStream.
* Unwraps this instance by returning the underlying {@link InputStream}.
* <p>
* Use with caution; useful to query the underlying InputStream.
* Use with caution; useful to query the underlying {@link InputStream}.
* </p>
* @return the underlying InputStream.
*
* @return the underlying {@link InputStream}.
* @since 2.16.0
*/
public InputStream unwrap() {
Expand Down

0 comments on commit 07f1df6

Please sign in to comment.