Package com.mucommander.commons.io

Examples of com.mucommander.commons.io.ChecksumInputStream


                        currentFileSkippedByteCounter.add(destFileSize);
                    }
                    else {
                        in = sourceFile.getInputStream();
                        if(integrityCheckEnabled)
                            in = new ChecksumInputStream(in, MessageDigest.getInstance(CHECKSUM_VERIFICATION_ALGORITHM));
                    }

                    setCurrentInputStream(in);
                }
                catch(Exception e) {
View Full Code Here


    }
        origFileStream = setCurrentInputStream(origFileStream);
        // init checksum calculation
        if (isIntegrityCheckEnabled()) {
      try {
        origFileStream = new ChecksumInputStream(origFileStream, MessageDigest.getInstance("CRC32"));
      } catch (NoSuchAlgorithmException e) {
        setIntegrityCheckEnabled(false);
                LOGGER.debug("Caught exception", e);
      }
        }
View Full Code Here

TOP

Related Classes of com.mucommander.commons.io.ChecksumInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.