Contents
The OSS runtime package includes the following:
Here are some of the features available with the runtime package:
For information about individual classes, see the OSS TOED API (Time-Optimized Encoder/Decoder) or OSS SOED API (Space-Optimized Encoder/Decoder) section.
The runtime library classes in the .jar files in the lib directory of the OSS ASN.1 Tools for Java installation folder are different. The library used at runtime must match the Java class generating option that was specified while running ASN.1 compiler, as follows:
Command-line option | Class library file |
---|---|
-soed | oss.jar |
-soed -lean | osslean.jar |
-toed (default) | osstoed.jar |
Encoding Rules | Limitations |
---|---|
DER | There is no support for encoding a SET OF type with a ValueInFile directive (HugeSetOf). |
CER | There is no support for the ValueInFile compiler directive. |
JSON | There is no support for:
|
OER/COER | There is no trace support for the OERCoder/COERCoder with the TOED runtime. Strict constraint validation is not available with the TOED runtime. The OER/COER TOED does only basic checks of the values that are passed to the encoder. For integer types, the encoder ensures that the value fits the number of octets computed from the subtype constraints. For restricted KMC character strings, BIT STRINGs and OCTET STRINGs that are constrained to a fixed size, the encoder ensures that the length of the value matches the fixed size. The OER/COER TOED provides limited support for automatic coding of BIT STRINGs and OCTET STRINGs with contents constraint. Automatic coding is supported only when a contents constraint omits the ENCODED BY clause. The following compiler directives are not supported:
|
PER | There is no support for the DeferDecoding compiler directive. |
CPER | There is no support for the DeferDecoding compiler directive. There is no support for the SET OF, GeneralString, or GraphicString types. |
XER | There is no support for:
|
E-XER | There is no support for:
for E-XER, contact Sales <info@oss.com>. |
Other limitations |
In some cases, the ASN.1 compiler generates a huge amount of Java code, which might cause the
the -splittypeinfo or -splitvalues compiler option, and the huge sample code can be split with the -splitsamplecode option. For ENUMERATED types, INTEGERs with named numbers, or BIT STRINGs with named bits, use the -splitBigEnums or -limitBigEnums option. |
The following table summarizes the important differences between the Space-Optimized Encoder/Decoder (SOED) and the Time-Optimized Encoder/Decoder (TOED).
Feature | SOED | TOED |
---|---|---|
Command-line options | These command-line options are ignored:
|
These command-line options are ignored:
|
Directives |
These directives are ignored:
|
These directives are ignored:
|
Runtime Packages |
The UNSIGNED class is not present in the SOED The following interfaces are not present in the
|
Generic applications that rely on using the JIA The TOED runtime currently provides support The following classes are not present in the
The following interfaces are not present in the
The following classes are not present in the
The com.oss.storage package is not present in The com.oss.metadata package is reduced and is |
Java Representations |
The following ASN.1 types are represented
|
|
Coding Services |
The following coding services are not available
|
This documentation applies to the OSS® ASN.1 Tools for Java release 8.7 and later.
Copyright © 2024 OSS Nokalva, Inc. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means electronic, mechanical, photocopying, recording or otherwise, without the prior permission of OSS Nokalva, Inc.
Every distributed copy of the OSS® ASN.1 Tools for Java is associated with a specific license and related unique license number. That license determines, among other things, what functions of the OSS ASN.1 Tools for Java are available to you.