<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.rmi.server.ObjID
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.LogStream.html#_top_">Previous</a>  <a href="java.rmi.server.Operation.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.rmi.server.ObjID
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.rmi.server.ObjID
</pre>
<hr>
<dl>
  <dt> public final class <b>ObjID</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
The class ObjID is used to identify remote objects uniquely in a VM
 over time. Each identifier contains an object number and an address
 space identifier that is unique with respect to a specific host. An
 object identifier is assigned to a remote object when it is
 exported.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#DGC_ID"><b>DGC_ID</b></a>
  <dd> well-known id for the distributed garbage collector
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#REGISTRY_ID"><b>REGISTRY_ID</b></a>
  <dd> well-known id for the registry
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ObjID()"><b>ObjID</b></a>()
  <dd>  Generate unique object identifier.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ObjID(int)"><b>ObjID</b></a>(int)
  <dd>  Generate a "well-known" object ID.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#equals(java.lang.Object)"><b>equals</b></a>(Object)
  <dd>  Two object identifiers are considered equal if they have the
 same contents.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#hashCode()"><b>hashCode</b></a>()
  <dd>  The hashcode is the object number.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#read(java.io.ObjectInput)"><b>read</b></a>(ObjectInput)
  <dd>  The read method constructs an object id whose contents is read
 from the specified input stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Returns a string containing the object id representation.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#write(java.io.ObjectOutput)"><b>write</b></a>(ObjectOutput)
  <dd>  Marshal object id to output stream.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="REGISTRY_ID"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>REGISTRY_ID</b>
<pre>
 public static final int REGISTRY_ID
</pre>
<dl>
  <dd> well-known id for the registry<p>
</dl>
<a name="DGC_ID"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>DGC_ID</b>
<pre>
 public static final int DGC_ID
</pre>
<dl>
  <dd> well-known id for the distributed garbage collector<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ObjID"></a>
<a name="ObjID()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ObjID</b>
<pre>
 public ObjID()
</pre>
<dl>
  <dd> Generate unique object identifier.
<p>
</dl>
<a name="ObjID(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ObjID</b>
<pre>
 public ObjID(int num)
</pre>
<dl>
  <dd> Generate a "well-known" object ID.  An object ID generated via
 this constructor will not clash with any object IDs generated
 via the default constructor.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> num - a unique well-known object number
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="write(java.io.ObjectOutput)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="write"><b>write</b></a>
<pre>
 public void write(<a href="java.io.ObjectOutput.html#_top_">ObjectOutput</a> out) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Marshal object id to output stream.
<p>
</dl>
<a name="read(java.io.ObjectInput)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="read"><b>read</b></a>
<pre>
 public static <a href="#_top_">ObjID</a> read(<a href="java.io.ObjectInput.html#_top_">ObjectInput</a> in) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> The read method constructs an object id whose contents is read
 from the specified input stream.
<p>
</dl>
<a name="hashCode()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="hashCode"><b>hashCode</b></a>
<pre>
 public int hashCode()
</pre>
<dl>
  <dd> The hashcode is the object number.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#hashCode()">hashCode</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="equals(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="equals"><b>equals</b></a>
<pre>
 public boolean equals(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> Two object identifiers are considered equal if they have the
 same contents.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#equals(java.lang.Object)">equals</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Returns a string containing the object id representation. The
 address space identifier is included in the string
 representation only if the object id is from a non-local
 address space.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.LogStream.html#_top_">Previous</a>  <a href="java.rmi.server.Operation.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
