/[classpath]/classpath/gnu/CORBA/Poa/gnuPOA.java
ViewVC logotype

Diff of /classpath/gnu/CORBA/Poa/gnuPOA.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by audriusa, Sun Oct 2 19:58:00 2005 UTC revision 1.3 by audriusa, Fri Oct 28 13:01:52 2005 UTC
# Line 87  import org.omg.PortableServer.POAPackage Line 87  import org.omg.PortableServer.POAPackage
87  import org.omg.PortableServer.POAPackage.ServantNotActive;  import org.omg.PortableServer.POAPackage.ServantNotActive;
88  import org.omg.PortableServer.POAPackage.WrongAdapter;  import org.omg.PortableServer.POAPackage.WrongAdapter;
89  import org.omg.PortableServer.POAPackage.WrongPolicy;  import org.omg.PortableServer.POAPackage.WrongPolicy;
90  import gnu.CORBA.CDR.cdrBufInput;  import gnu.CORBA.CDR.BufferredCdrInput;
91  import gnu.CORBA.CDR.cdrBufOutput;  import gnu.CORBA.CDR.BufferedCdrOutput;
92    
93  /**  /**
94   * Our POA implementation.   * Our POA implementation.
# Line 847  public class gnuPOA Line 847  public class gnuPOA
847        return m_poa_id;        return m_poa_id;
848      else      else
849        {        {
850          cdrBufOutput buffer = new cdrBufOutput();          BufferedCdrOutput buffer = new BufferedCdrOutput();
851          POA p = this;          POA p = this;
852          while (p != null)          while (p != null)
853            {            {
# Line 1565  public class gnuPOA Line 1565  public class gnuPOA
1565     */     */
1566    public activeObjectMap.Obj findIorKey(byte[] ior_key)    public activeObjectMap.Obj findIorKey(byte[] ior_key)
1567    {    {
1568      cdrBufInput in = new cdrBufInput(ior_key);      BufferredCdrInput in = new BufferredCdrInput(ior_key);
1569      int signature = in.read_long();      int signature = in.read_long();
1570      if (signature != SIGNATURE)      if (signature != SIGNATURE)
1571        return null;        return null;
# Line 1582  public class gnuPOA Line 1582  public class gnuPOA
1582     */     */
1583    public byte[] toIORKey(byte[] object_id)    public byte[] toIORKey(byte[] object_id)
1584    {    {
1585      cdrBufOutput buffer = new cdrBufOutput();      BufferedCdrOutput buffer = new BufferedCdrOutput();
1586      buffer.write_long(SIGNATURE);      buffer.write_long(SIGNATURE);
1587      buffer.write_sequence(object_id);      buffer.write_sequence(object_id);
1588      buffer.write_sequence(id());      buffer.write_sequence(id());
# Line 1600  public class gnuPOA Line 1600  public class gnuPOA
1600     */     */
1601    public byte[] idFormIor(byte[] ior_key)    public byte[] idFormIor(byte[] ior_key)
1602    {    {
1603      cdrBufInput in = new cdrBufInput(ior_key);      BufferredCdrInput in = new BufferredCdrInput(ior_key);
1604      int signature = in.read_long();      int signature = in.read_long();
1605      if (signature != SIGNATURE)      if (signature != SIGNATURE)
1606        return null;        return null;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26