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 -
Method Summary
Modifier and TypeMethodDescriptionformatValue
(int context) Formats a simple ASN.1 type value using a custom format implemented by the user.
-
Field Details
-
CSV
static final int CSVIdentifies the CSV output.- See Also:
-
-
Method Details
-
formatValue
Formats a simple ASN.1 type value using a custom format implemented by the user. The method can returnnull
when custom formatting is not possible. Whennull
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
.
-