Package org.trellisldp.ext.cassandra
Class NoopCloseCountingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.io.input.ProxyInputStream
-
- org.apache.commons.io.input.CountingInputStream
-
- org.trellisldp.ext.cassandra.NoopCloseCountingInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class NoopCloseCountingInputStream extends org.apache.commons.io.input.CountingInputStreamAnInputStreamthat counts the bytes read from it and does not propagateclose().
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description NoopCloseCountingInputStream(InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()-
Methods inherited from class org.apache.commons.io.input.CountingInputStream
afterRead, getByteCount, getCount, resetByteCount, resetCount, skip
-
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
available, beforeRead, handleIOException, mark, markSupported, read, read, read, reset
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
NoopCloseCountingInputStream
public NoopCloseCountingInputStream(InputStream in)
- Parameters:
in- theInputStreamto wrap
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.commons.io.input.ProxyInputStream
-
-