Class NumericFormatBinaryX


public final class NumericFormatBinaryX extends NumericFormatCompressed
Used for representation of 'COMP_X'
  • Method Details

    • calculateFormattedCellSize

      public final int calculateFormattedCellSize()
    • formatHelper

      protected String formatHelper(long longVal, boolean isNegative)
      format a value according to the PIC definition
    • convertFromStorageToDisplayFormat

      public final String convertFromStorageToDisplayFormat(String formattedString)
      Specified by:
      convertFromStorageToDisplayFormat in class Format
    • convertFromCompressedStorageToDisplayFormat

      public final String convertFromCompressedStorageToDisplayFormat(String formattedString)
      Description copied from class: NumericFormatCompressed
      Convert from Storage-Compressed to Display This methods returns the actual stored value, even it is bigger than the defined format.
      E.g. PIC 9(2) COMP can store a value of 30000 ! This method will return "30000", but convertFromStorageToDisplayFormat will return "30".
      Specified by:
      convertFromCompressedStorageToDisplayFormat in class NumericFormatCompressed
      Parameters:
      formattedString -
      Returns:
    • handleIntegerPart

      protected final void handleIntegerPart(StringBuilder body, boolean[] sizeError)