fix BufferedInputStream offset + jdoc
[nikiroo-utils.git] / src / be / nikiroo / utils / NextableInputStream.java
index 37322c9e8e0d7c5f7b651f44a817aecbe6469e5b..7e2766ad950d6f10efa0dbd5c16214ebcb581605 100644 (file)
@@ -111,6 +111,20 @@ public class NextableInputStream extends BufferedInputStream {
                return next(true);
        }
 
+       /**
+        * Check if this stream is totally spent (no more data to read or to
+        * process).
+        * <p>
+        * Note: an empty stream that is still not started will return FALSE, as we
+        * don't know yet if it is empty.
+        * 
+        * @return TRUE if it is
+        */
+       @Override
+       public boolean eof() {
+               return super.eof();
+       }
+       
        /**
         * Check if we still have some data in the buffer and, if not, fetch some.
         *