com.ericsson.otp.erlang
Class OtpErlangChar

java.lang.Object
  |
  +--com.ericsson.otp.erlang.OtpErlangObject
        |
        +--com.ericsson.otp.erlang.OtpErlangLong
              |
              +--com.ericsson.otp.erlang.OtpErlangChar

public class OtpErlangChar
extends OtpErlangLong

Provides a Java representation of Erlang integral types.


Constructor Summary
OtpErlangChar(char c)
          Create an Erlang integer from the given value.
OtpErlangChar(OtpInputStream buf)
          Create an Erlang integer from a stream containing an integer encoded in Erlang external format.
 
Methods inherited from class com.ericsson.otp.erlang.OtpErlangLong
byteValue, charValue, encode, equals, equals, intValue, longValue, shortValue, toString, uIntValue, uShortValue
 
Methods inherited from class com.ericsson.otp.erlang.OtpErlangObject
decode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OtpErlangChar

public OtpErlangChar(char c)
Create an Erlang integer from the given value.
Parameters:
c - the char value to use.

OtpErlangChar

public OtpErlangChar(OtpInputStream buf)
              throws OtpErlangRangeException,
                     OtpErlangDecodeException
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 char.