/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* Licensed Materials - Property of IBM
* RMI-IIOP v1.0
* Copyright IBM Corp. 1998 1999 All Rights Reserved
*
*/
// Be very careful: com.sun.corba imports must not depend on
// PEORB internal classes in ways that prevent portability to
// other vendor's ORBs.
/**
* This class implements a very simply IOR representation
* which must be completely ORBImpl free so that this class
* can be used in the implementation of a portable StubDelegateImpl.
*/
public class StubIORImpl
{
// cached hash code
private int hashCode;
// IOR components
private byte[] typeData;
private int[] profileTags;
private byte[][] profileData;
public StubIORImpl()
{
hashCode = 0 ;
profileTags = null ;
profileData = null ;
}
{
return null ;
}
{
// write the IOR to an OutputStream and get an InputStream
// read the IOR components back from the stream
typeData = new byte[typeLength];
profileTags = new int[numProfiles];
profileData = new byte[numProfiles][];
for (int i = 0; i < numProfiles; i++) {
}
}
{
// write the IOR components to an org.omg.CORBA.portable.OutputStream
}
// read the IOR back from the stream
}
throws IOException, ClassNotFoundException
{
// read the IOR from the ObjectInputStream
typeData = new byte[typeLength];
profileTags = new int[numProfiles];
profileData = new byte[numProfiles][];
for (int i = 0; i < numProfiles; i++) {
}
}
throws IOException
{
// write the IOR to the ObjectOutputStream
}
}
/**
* Returns a hash code value for the object which is the same for all stubs
* that represent the same remote object.
* @return the hash code value.
*/
public synchronized int hashCode()
{
if (hashCode == 0) {
// compute the hash code
}
}
}
}
return hashCode;
}
{
return false ;
return false ;
}
return true ;
}
{
return false ;
return false ;
}
return true ;
}
{
return false ;
return false ;
}
return true ;
}
{
if (this == obj) {
return true;
}
if (!(obj instanceof StubIORImpl)) {
return false;
}
return false;
}
}
{
}
}
/**
* Returns a string representation of this stub. Returns the same string
* for all stubs that represent the same remote object.
* "SimpleIORImpl[<typeName>,[<profileID>]data, ...]"
* @return a string representation of this stub.
*/
{
}
}
}