Package com.oss.asn1

Enum Class ContentHandler.Response

java.lang.Object
java.lang.Enum<ContentHandler.Response>
com.oss.asn1.ContentHandler.Response
All Implemented Interfaces:
Serializable, Comparable<ContentHandler.Response>, Constable
Enclosing class:
ContentHandler

public static enum ContentHandler.Response extends Enum<ContentHandler.Response>
Return codes of event handling methods of a partial decoding handler classes.

Event handling methods, also known as call backs, are implemented by the user's handler classes and are invoked by the partial decoding procedure when certain fields (the fields marked with InfoCallback or DataCallback directives) are encountered in the encoded data. Return code of a callback method specifies an action to be taken by the decoder. There are the following possible actions:

  • CONTINUE - proceed with partial decoding procedure, until other call back is invoked or PDU ends.
  • SKIP - skip to the end of current field if returned from "begin field" callback, or skip to the end of PDU if returned from "end field" callback.
  • ABORT - end the partial decoding procedure immediately.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Specifies that partial decoding procedure should be terminated immediately.
    Specifies that partial decoding should be continued in a normal way.
    Specifies that partial decoding should be continued with suppressing all other callbacks either upto the end of current field or upto the whole PDU end, depending on whether the SKIP response is returned from a "begin" callback or from an "end" callback.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CONTINUE

      public static final ContentHandler.Response CONTINUE
      Specifies that partial decoding should be continued in a normal way.
    • SKIP

      public static final ContentHandler.Response SKIP
      Specifies that partial decoding should be continued with suppressing all other callbacks either upto the end of current field or upto the whole PDU end, depending on whether the SKIP response is returned from a "begin" callback or from an "end" callback.
    • ABORT

      public static final ContentHandler.Response ABORT
      Specifies that partial decoding procedure should be terminated immediately.
  • Method Details

    • values

      public static ContentHandler.Response[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ContentHandler.Response valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null