Class OtpErlangShort

All Implemented Interfaces:
Serializable, Cloneable

public class OtpErlangShort extends OtpErlangLong
Provides a Java representation of Erlang integral types.
See Also:
  • Constructor Details

    • OtpErlangShort

      public OtpErlangShort(short s)
      Create an Erlang integer from the given value.
      Parameters:
      s - the short value to use.
    • OtpErlangShort

      Create an Erlang integer from a stream containing an integer encoded in Erlang external format.
      Parameters:
      buf - the stream containing the encoded value.
      Throws:
      OtpErlangDecodeException - if the buffer does not contain a valid external representation of an Erlang integer.
      OtpErlangRangeException - if the value is too large to be represented as a short.