Class CompactInteger


  • public class CompactInteger
    extends java.lang.Object
    Support for compact integer storage format
    Author:
    Andreas Schwier (info@cardcontact.de)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int sizeof  
      protected int value  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBytes()  
      int intValue()  
      int sizeOf()  
      • Methods inherited from class java.lang.Object

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

      • value

        protected int value
      • sizeof

        protected int sizeof
    • Constructor Detail

      • CompactInteger

        public CompactInteger​(int newValue)
      • CompactInteger

        public CompactInteger​(byte[] bytes,
                              int ofs)
      • CompactInteger

        public CompactInteger​(byte[] bytes)
    • Method Detail

      • sizeOf

        public int sizeOf()
      • intValue

        public int intValue()
      • getBytes

        public byte[] getBytes()