You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/02/07 09:17:38 UTC
[GitHub] [commons-io] Marcono1234 commented on a change in pull request #291: Improve `ReaderInputStream` documentation
Marcono1234 commented on a change in pull request #291:
URL: https://github.com/apache/commons-io/pull/291#discussion_r800451592
##########
File path: src/main/java/org/apache/commons/io/input/ReaderInputStream.java
##########
@@ -213,6 +230,16 @@ public void close() throws IOException {
reader.close();
}
+ /**
+ * The implementation by {@link ReaderInputStream} always returns 0.
+ */
+ @Override
+ public int available() throws IOException {
+ // Could implement this using Reader.ready(), but would be rather cumbersome
+ // and probably not very efficient
+ return 0;
+ }
+
Review comment:
Sorry; have removed this method again now in the latest commit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org