Package htsjdk.samtools.util
Class Md5CalculatingInputStream
java.lang.Object
java.io.InputStream
htsjdk.samtools.util.Md5CalculatingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Class to generate an MD5 string for a file as it is being read
-
Constructor Summary
ConstructorsConstructorDescriptionMd5CalculatingInputStream
(InputStream is, File digestFile) Constructor that takes in the InputStream that we are wrapping and creates the MD5 MessageDigest -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
Md5CalculatingInputStream
Constructor that takes in the InputStream that we are wrapping and creates the MD5 MessageDigest
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
md5
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-