org.omg.CORBA
Class IdentifierHelper

java.lang.Object
  extended by org.omg.CORBA.IdentifierHelper

public abstract class IdentifierHelper
extends Object

A formal helper for the CORBA Identifier that is identical to the narrow string.


Constructor Summary
IdentifierHelper()
           
 
Method Summary
static String extract(Any a)
          Extract the Identifier from Any ((uses Any.extract_string()).
static String id()
          Return the Identifier repository id.
static void insert(Any a, String that)
          Insert the Identifier into Any (uses Any.insert_string(java.lang.String)).
static String read(InputStream istream)
          Calls InputStream.read_string().
static TypeCode type()
          Return an string alias typecode, named "Identifier".
static void write(OutputStream ostream, String value)
          Calls OutputStream.write_string(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifierHelper

public IdentifierHelper()
Method Detail

insert

public static void insert(Any a,
                          String that)
Insert the Identifier into Any (uses Any.insert_string(java.lang.String)).

Parameters:
a - the Any to insert into.
that - the string to insert.

extract

public static String extract(Any a)
Extract the Identifier from Any ((uses Any.extract_string()).

Parameters:
a - the Any to extract from.

type

public static TypeCode type()
Return an string alias typecode, named "Identifier".


id

public static String id()
Return the Identifier repository id.

Returns:
"IDL:omg.org/CORBA/Identifier:1.0", always.

read

public static String read(InputStream istream)
Calls InputStream.read_string().

Parameters:
istream - the stream to read from.

write

public static void write(OutputStream ostream,
                         String value)
Calls OutputStream.write_string(String).

Parameters:
ostream - the stream to write into.
value - the string (Identifier) value to write.