Class NumericFormatBinary

Direct Known Subclasses:
TandemNative

public class NumericFormatBinary extends NumericFormatCompressed
Used for representation of COMP_MODE_COMP
  • Method Details

    • setWordStorage

      public static final void setWordStorage(boolean wordStorage)
    • calculateFormattedCellSize

      public int calculateFormattedCellSize()
    • formatHelper

      protected final String formatHelper(long longVal, boolean isNegative)
      formathelper -
      Parameters:
      longVal -
      Returns:
    • 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)