Class CRC16

  • All Implemented Interfaces:
    java.util.zip.Checksum

    class CRC16
    extends java.lang.Object
    implements java.util.zip.Checksum
    CRC16-ANSI checksum
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static short[] TABLE  
      private long value  
    • Constructor Summary

      Constructors 
      Constructor Description
      CRC16()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getValue()  
      void reset()  
      void update​(byte[] b, int off, int len)  
      void update​(int b)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.zip.Checksum

        update, update
    • Field Detail

      • TABLE

        private static final short[] TABLE
      • value

        private long value
    • Constructor Detail

      • CRC16

        CRC16()
    • Method Detail

      • update

        public void update​(int b)
        Specified by:
        update in interface java.util.zip.Checksum
      • update

        public void update​(byte[] b,
                           int off,
                           int len)
        Specified by:
        update in interface java.util.zip.Checksum
      • getValue

        public long getValue()
        Specified by:
        getValue in interface java.util.zip.Checksum
      • reset

        public void reset()
        Specified by:
        reset in interface java.util.zip.Checksum