Package com._1c.g5.v8.dt.core.provider
Class BmContentImportSupport.NonCloseableHashingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com._1c.g5.v8.dt.core.provider.BmContentImportSupport.NonCloseableHashingInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- BmContentImportSupport
protected static class BmContentImportSupport.NonCloseableHashingInputStream extends FilterInputStream
Non-closeable version of com.google.common.hash.HashingInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description NonCloseableHashingInputStream(com.google.common.hash.HashFunction hashFunction, InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.google.common.hash.HashCode
hash()
void
mark(int readlimit)
boolean
markSupported()
int
read()
int
read(byte[] bytes, int off, int len)
void
reset()
-
Methods inherited from class java.io.FilterInputStream
available, read, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
NonCloseableHashingInputStream
public NonCloseableHashingInputStream(com.google.common.hash.HashFunction hashFunction, InputStream in)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
-
hash
public com.google.common.hash.HashCode hash()
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classFilterInputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classFilterInputStream
-
read
public int read() throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] bytes, int off, int len) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-
-