diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2017-10-13 18:47:28 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2017-12-16 17:34:30 +0200 |
commit | e989ce27f071100642babb5cd0dc03c56dfe4511 (patch) | |
tree | 3c514863f04d7495e741d1594931273f9e62a43b /src/org/tukaani/xz/CountingInputStream.java | |
parent | a0d189d655b7cb34792bbda4b1a8b0230c541b34 (diff) | |
download | xz-java-e989ce27f071100642babb5cd0dc03c56dfe4511.tar.gz |
Add ArrayCache support to {,Single,Seekable}XZInputStream.
In addition to the new constructors, this adds close(boolean)
to these three classes.
Diffstat (limited to 'src/org/tukaani/xz/CountingInputStream.java')
-rw-r--r-- | src/org/tukaani/xz/CountingInputStream.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/tukaani/xz/CountingInputStream.java b/src/org/tukaani/xz/CountingInputStream.java index ce0935a..8599f97 100644 --- a/src/org/tukaani/xz/CountingInputStream.java +++ b/src/org/tukaani/xz/CountingInputStream.java @@ -15,8 +15,10 @@ import java.io.IOException; /** * Counts the number of bytes read from an input stream. + * The <code>close()</code> method does nothing, that is, the underlying + * <code>InputStream</code> isn't closed. */ -class CountingInputStream extends FilterInputStream { +class CountingInputStream extends CloseIgnoringInputStream { private long size = 0; public CountingInputStream(InputStream in) { |