
Generated Java Method Format and Calling Parameters
public void encode (Asn1PerEncodeBuffer buffer) throws Asn1Exception, java.io.IOExceptionThe buffer argument is a reference of an Asn1PerEncodeBuffer object that describes the buffer into which a message is to be encoded. This must be created and initialized before calling any encode method. See the description of this class in the Java Run-Time Classes section for details on how this class is used.
The PER encode methods do not return a value. This is different than the C/C++ version that returns a negative status value to indicate an encoding failure. For Java, errors are reported via the exception mechanism. All ASN1C Java exceptions are derived from the Asn1Exception base class. See the section on exceptions for a complete list and description of the various exceptions that can be thrown.
Objective Systems, Inc.102 Pickering Way, Suite #506Exton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |