git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix BufferedInputStream offset + jdoc
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
utils
/
BufferedInputStream.java
diff --git
a/src/be/nikiroo/utils/BufferedInputStream.java
b/src/be/nikiroo/utils/BufferedInputStream.java
index b236f8dac290d5406f18c8e758e62804a3f0af1c..9db12f1926cc372544998ae6128a20016370c0e7 100644
(file)
--- a/
src/be/nikiroo/utils/BufferedInputStream.java
+++ b/
src/be/nikiroo/utils/BufferedInputStream.java
@@
-201,9
+201,6
@@
public class BufferedInputStream extends InputStream {
/**
* Check if this stream is totally spent (no more data to read or to
* process).
/**
* 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
*/
*
* @return TRUE if it is
*/
@@
-246,7
+243,7
@@
public class BufferedInputStream extends InputStream {
if (hasMoreData()) {
int now = Math.min(blen, len) - pos;
if (now > 0) {
if (hasMoreData()) {
int now = Math.min(blen, len) - pos;
if (now > 0) {
- System.arraycopy(buffer, pos, b, boff, now);
+ System.arraycopy(buffer, pos, b, boff
+ done
, now);
pos += now;
done += now;
}
pos += now;
done += now;
}