Package VASSAL.tools

Class CRCUtils

java.lang.Object
VASSAL.tools.CRCUtils

public class CRCUtils extends Object
Some general purpose CRC utilities.
Since:
3.1.0
Author:
Brent Easton
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    getCRC​(List<File> files)
    Calculate a cumulative CRC over a series of files NOTE: It is up to the calling routine to ensure that the order of Files in the list is consistent across all platforms.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CRCUtils

      public CRCUtils()
  • Method Details

    • getCRC

      public static long getCRC(List<File> files) throws IOException
      Calculate a cumulative CRC over a series of files NOTE: It is up to the calling routine to ensure that the order of Files in the list is consistent across all platforms.
      Parameters:
      files - List of files
      Returns:
      CRC
      Throws:
      IOException - oops