/** * Constructor FSDigestInputStream creates a new FSDigestInputStream instance. * * @param inputStream of type InputStream * @param digestHex of type String * @throws IOException if unable to get md5 digest */ public FSDigestInputStream( InputStream inputStream, String digestHex ) throws IOException { this( inputStream, getMD5Digest(), digestHex ); }
/** * Constructor FSDigestInputStream creates a new FSDigestInputStream instance. * * @param inputStream of type InputStream * @param digestHex of type String * @throws IOException if unable to get md5 digest */ public FSDigestInputStream( InputStream inputStream, String digestHex ) throws IOException { this( inputStream, getMD5Digest(), digestHex ); }