Package htsjdk.samtools.util
Class Md5CalculatingOutputStream
java.lang.Object
java.io.OutputStream
htsjdk.samtools.util.Md5CalculatingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Class to generate an MD5 string for a file as it is being read
-
Constructor Summary
ConstructorDescriptionMd5CalculatingOutputStream
(OutputStream os, File digestFile) Md5CalculatingOutputStream
(OutputStream os, Path digestFile) Constructor that takes in the OutputStream that we are wrapping and creates the MD5 MessageDigest -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
Md5CalculatingOutputStream
Constructor that takes in the OutputStream that we are wrapping and creates the MD5 MessageDigest -
Md5CalculatingOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
md5
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-