<!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.UID
</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.RemoteStub.html#_top_">Previous</a>  <a href="java.rmi.server.UnicastRemoteObject.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.rmi.server.UID
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.rmi.server.UID
</pre>
<hr>
<dl>
  <dt> public final class <b>UID</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
Abstraction for creating identifiers that are unique with respect
 to the the host on which it is generated.
<p>
<hr>
<a name="index"></a>
<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="#UID()"><b>UID</b></a>()
  <dd>  Create a pure identifier that is unique with respect to the
 host on which it is generated.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#UID(short)"><b>UID</b></a>(short)
  <dd>  Create a "well-known" 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>  Compares two Objects for equality.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#hashCode()"><b>hashCode</b></a>()
  <dd>  Returns a hash code value for the object.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#read(java.io.DataInput)"><b>read</b></a>(DataInput)
  <dd>  Get the uid from the 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 representation of the object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#write(java.io.DataOutput)"><b>write</b></a>(DataOutput)
  <dd>  Write uid to output stream.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="UID"></a>
<a name="UID()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>UID</b>
<pre>
 public UID()
</pre>
<dl>
  <dd> Create a pure identifier that is unique with respect to the
 host on which it is generated.  This UID is unique under the
 following conditions: a) the machine takes more than one second
 to reboot, and b) the machine's clock is never set backward.
 In order to construct a UID that is globally unique, simply
 pair a UID with an InetAddress.
<p>
</dl>
<a name="UID(short)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>UID</b>
<pre>
 public UID(short num)
</pre>
<dl>
  <dd> Create a "well-known" ID.  There are 2^16 -1 such possible
 well-known ids.  An id generated via this constructor will not
 clash with any id generated via the default UID
 constructor which will generates a genuinely unique identifier
 with respect to this host.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<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> Returns a hash code value for the object.
<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> Compares two Objects for equality.
<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 representation of the object.
<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>
<a name="write(java.io.DataOutput)"><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.DataOutput.html#_top_">DataOutput</a> out) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Write uid to output stream.
<p>
</dl>
<a name="read(java.io.DataInput)"><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_">UID</a> read(<a href="java.io.DataInput.html#_top_">DataInput</a> in) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Get the uid from the input stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> in - the input stream
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If uid could not be read
 (due to stream failure or malformed uid)
  </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.RemoteStub.html#_top_">Previous</a>  <a href="java.rmi.server.UnicastRemoteObject.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
