Package com.oss.asn1

Interface CustomFormatting


public interface CustomFormatting
Subclasses of AbstractData that represent simple ASN.1 types can implement this interface to override the default format used to display simple values in the CSV output. To implement custom formatting, use the OSS.UserClass directive and extend the generated Java class to implement the CustomFormatting interface.
Since:
ASN.1/Java 8.4
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifies the CSV output.
  • Method Summary

    Modifier and Type
    Method
    Description
    formatValue(int context)
    Formats a simple ASN.1 type value using a custom format implemented by the user.
  • Field Details

  • Method Details

    • formatValue

      String formatValue(int context)
      Formats a simple ASN.1 type value using a custom format implemented by the user. The method can return null when custom formatting is not possible. When null is returned, the caller needs to display the value using the default format.
      Parameters:
      context - specifies the context in which the formatted value will be displayed. For example, CSV means that the value is formatted for the CSV output.
      Returns:
      the formatted value or null.