Class ConfEUShort

All Implemented Interfaces:
Serializable, Cloneable

public class ConfEUShort extends ConfELong implements Serializable, Cloneable
Provides a Java representation of E integral types.
See Also:
  • Constructor Details

    • ConfEUShort

      public ConfEUShort(short s) throws ConfERangeException
      Create an E integer from the given value.
      Parameters:
      s - the non-negative short value to use.
      Throws:
      ConfERangeException - if the value is negative.
    • ConfEUShort

      public ConfEUShort(ConfInputStream buf) throws ConfERangeException, ConfEDecodeException
      Create an E integer from a stream containing an integer encoded in E external format.
      Parameters:
      buf - the stream containing the encoded value.
      Throws:
      ConfEDecodeException - if the buffer does not contain a valid external representation of an E integer.
      ConfERangeException - if the value is too large to be represented as a short, or the value is negative.