|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ericsson.otp.erlang.OtpErlangObject | +--com.ericsson.otp.erlang.OtpErlangPort
Provides a Java representation of Erlang ports.
Constructor Summary | |
OtpErlangPort(OtpInputStream buf)
Create an Erlang port from a stream containing a port encoded in Erlang external format. |
|
OtpErlangPort(java.lang.String node,
int id,
int creation)
Create an Erlang port from its components. |
Method Summary | |
int |
creation()
Get the creation number from the port. |
void |
encode(OtpOutputStream buf)
Convert this port to the equivalent Erlang external representation. |
boolean |
equals(java.lang.Object o)
Determine if two ports are equal. |
int |
id()
Get the id number from the port. |
java.lang.String |
node()
Get the node name from the port. |
java.lang.String |
toString()
Get the string representation of the port. |
Methods inherited from class com.ericsson.otp.erlang.OtpErlangObject |
clone,
decode |
Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public OtpErlangPort(OtpInputStream buf) throws OtpErlangDecodeException
buf
- the stream containing the encoded port.public OtpErlangPort(java.lang.String node, int id, int creation)
node
- the nodename.id
- an arbitrary number. Only the low order 18 bits will
be used.creation
- another arbitrary number. Only the low order
2 bits will be used.Method Detail |
public int id()
public int creation()
public java.lang.String node()
public java.lang.String toString()
public void encode(OtpOutputStream buf)
buf
- an output stream to which the encoded port should be
written.public boolean equals(java.lang.Object o)
o
- the other port to compare to.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |