Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IO-826] Add runtime exception support to broken streams #530

Prev Previous commit
Next Next commit
Javadoc
  • Loading branch information
garydgregory authored Dec 21, 2023
commit afb46f34786e8e98b26a943c351c9dedfacd5ef6
10 changes: 5 additions & 5 deletions src/main/java/org/apache/commons/io/input/BrokenInputStream.java
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ public BrokenInputStream(final Supplier<Throwable> exceptionSupplier) {
* Throws the configured exception.
*
* @return nothing.
* @throws IOException always throws the exception configured in the constructor.
* @throws IOException always throws the exception configured in a constructor.
*/
@Override
public int available() throws IOException {
@@ -96,7 +96,7 @@ public int available() throws IOException {
/**
* Throws the configured exception.
*
* @throws IOException always throws the exception configured in the constructor.
* @throws IOException always throws the exception configured in a constructor.
*/
@Override
public void close() throws IOException {
@@ -107,7 +107,7 @@ public void close() throws IOException {
* Throws the configured exception.
*
* @return nothing.
* @throws IOException always throws the exception configured in the constructor.
* @throws IOException always throws the exception configured in a constructor.
*/
@Override
public int read() throws IOException {
@@ -117,7 +117,7 @@ public int read() throws IOException {
/**
* Throws the configured exception.
*
* @throws IOException always throws the exception configured in the constructor.
* @throws IOException always throws the exception configured in a constructor.
*/
@Override
public synchronized void reset() throws IOException {
@@ -138,7 +138,7 @@ private RuntimeException rethrow() {
*
* @param n ignored.
* @return nothing.
* @throws IOException always throws the exception configured in the constructor.
* @throws IOException always throws the exception configured in a constructor.
*/
@Override
public long skip(final long n) throws IOException {