public class ConfEUShort extends ConfELong implements Serializable, Cloneable
Constructor and Description |
---|
ConfEUShort(ConfInputStream buf)
Create an E integer from a stream containing an integer encoded in E
external format.
|
ConfEUShort(short s)
Create an E integer from the given value.
|
byteValue, charValue, encode, equals, intValue, longValue, shortValue, toString, uIntValue, uShortValue
clone, decode
public ConfEUShort(short s) throws ConfERangeException
s
- the non-negative short value to use.ConfERangeException
- if the value is negative.public ConfEUShort(ConfInputStream buf) throws ConfERangeException, ConfEDecodeException
buf
- the stream containing the encoded value.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.