Chapter 17. Generated Print Methods

Table of Contents

Generated Java Print Method Format and Calling Parameters
Generated Java Print-To-String Method Format and Calling Parameters

The -print option causes print methods to be generated. These functions can be used to print the contents of variables of generated types. A print method is generated in each of the generated Java source files.

The -prtToStr option causes ASN1C to generate print methods whose primary argument is a StringBuilder object. This provides a somewhat higher-performance means for users to write data to a string (instead of using StringWriter or another stream-based method).