Searched refs:inputSource (Results 1 – 4 of 4) sorted by relevance
143 ByteArrayInputStream inputSource = new ByteArrayInputStream(source.getBytes()); in testCalculateCrc32() local144 long actualCrc32 = StreamUtil.calculateCrc32(inputSource); in testCalculateCrc32()157 ByteArrayInputStream inputSource = new ByteArrayInputStream(source.getBytes()); in testCalculateMd5() local158 String actualMd5 = StreamUtil.calculateMd5(inputSource); in testCalculateMd5()171 ByteArrayInputStream inputSource = new ByteArrayInputStream(source.getBytes()); in testCalculateBase64Md5() local172 String actualBase64Md5 = StreamUtil.calculateBase64Md5(inputSource); in testCalculateBase64Md5()
419 public static String calculateMd5(InputStream inputSource) throws IOException { in calculateMd5() argument420 return bytesToHexString(calculateMd5Digest(inputSource)); in calculateMd5()431 public static String calculateBase64Md5(InputStream inputSource) throws IOException { in calculateBase64Md5() argument432 return Base64.getEncoder().encodeToString(calculateMd5Digest(inputSource)); in calculateBase64Md5()435 private static byte[] calculateMd5Digest(InputStream inputSource) throws IOException { in calculateMd5Digest() argument443 InputStream input = new BufferedInputStream(new DigestInputStream(inputSource, md)); in calculateMd5Digest()
1068 try (BufferedInputStream inputSource = new BufferedInputStream(new FileInputStream(file))) { in calculateCrc32() argument1069 return StreamUtil.calculateCrc32(inputSource); in calculateCrc32()1081 FileInputStream inputSource = new FileInputStream(file); in calculateMd5() local1082 return StreamUtil.calculateMd5(inputSource); in calculateMd5()1093 FileInputStream inputSource = new FileInputStream(file); in calculateBase64Md5() local1094 return StreamUtil.calculateBase64Md5(inputSource); in calculateBase64Md5()
708 InputSource inputSource = new InputSource(new StringReader(xml)); in getXmlNodes() local710 return (NodeList) xpath.evaluate(xPathExpression, inputSource, XPathConstants.NODESET); in getXmlNodes()