Class FileChecksum

java.lang.Object
org.exoplatform.commons.file.services.util.FileChecksum

public final class FileChecksum extends Object
Offers to calculate Checksum Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com
  • Constructor Details

    • FileChecksum

      public FileChecksum()
  • Method Details

    • getChecksum

      public static String getChecksum(String string) throws Exception
      MD5-Checksum for a string.
      Parameters:
      string - chain to calculate Checksum
      Returns:
      Checksum
      Throws:
      Exception - exception
    • getChecksum

      public static String getChecksum(InputStream fis) throws Exception
      MD5-Checksum for a file.
      Parameters:
      fis - InputStream
      Returns:
      Checksum
      Throws:
      Exception - exception