IBM InfoSphere Streams Version 4.1.1

Supported ASN.1/SPL Type Combinations

The ASN1Parse operator supports the ASN.1/SPL type combinations that are described in the following list.

Hint: The spl-schema-from-asn1 command line tool uses the SPL types that are marked with *), to create SPL type definitions based on the ASN.1 grammar specification. You can manually replace the generated default SPL types with other supported types.

ASN.1 Type

Supported SPL Types and Fault Behavior

BIT STRING

  • rstring *) with a ‘0’ or ‘1’ character for each bit

BMPString

  • blob
  • rstring *)

BOOLEAN

  • boolean *)
  • rstring with either "true" or "false"

ENUMERATED

Any value in the binary data block that does not fit into the specified integer type, results in a failed conversion. For example, 512 does not fit into a uint8 type that has a range from 0 to 255.

  • enum *), any value in the binary data block that cannot be mapped to an enumeration id, results in a failed conversion
  • int8
  • int16
  • int32
  • int64
  • rstring that is the name of the enumeration id, except if a value is encountered that has no corresponding enumeration id; in this case, a warning is emitted and the value is presented as integer
  • uint8
  • uint16
  • uint32
  • uint64

GeneralizedTime

  • rstring with the YYYY-MM-DD HH24:MM:SS format
  • timestamp *)

GeneralString

  • blob *)
  • rstring that is a hex dump

GraphicString

  • blob *)
  • rstring that is a hex dump

IA5String

  • blob
  • rstring *)

INTEGER

Any value in the binary data block that does not fit into the specified integer type, results in a failed conversion. For example, 512 does not fit into a uint8 type that has a range from 0 to 255.

  • int8
  • int16
  • int32
  • int64 *)
  • rstring
  • uint8
  • uint16
  • uint32
  • uint64

ISO646String

  • blob
  • rstring *)

NULL

  • boolean *) that is true if the ASN.1 field present, else false

NumericString

  • blob
  • rstring *)

ObjectDescriptor

  • blob
  • rstring *)

OBJECT IDENTIFIER

  • rstring *)

OCTET STRING

  • blob *)
  • rstring that is a hex dump

PrintableString

  • blob
  • rstring *)

REAL

  • float64 *)
  • float32
  • rstring

RELATIVE-OID

  • rstring *)

T61String

  • blob *)
  • rstring that is a hex dump

TeletexString

  • blob *)
  • rstring that is a hex dump

UniversalString

  • blob
  • rstring *)

UTCTime

  • rstring with the YYYY-MM-DD HH24:MM:SS format
  • timestamp *)

UTF8String

  • blob
  • rstring *)

VideotexString

  • blob *)
  • rstring that is a hex dump

VisibleString

  • blob
  • rstring *)

SET

tuple<...>

SEQUENCE

tuple<...>

CHOICE

tuple<...>