org.omg.CosNaming
Class IstringHelper

java.lang.Object
  extended by org.omg.CosNaming.IstringHelper

public abstract class IstringHelper
extends Object

"Istring" was a "placeholder for a future IDL internationalized string data type" in the original specification. It is maintained solely for compatibility reasons. In both java and CORBA, Istring is now identical to the narrow (not wide) string and needs no helper. This class is implemented just for compatibility reasons.


Constructor Summary
IstringHelper()
           
 
Method Summary
static String extract(Any a)
          Extract the IString from Any ((uses Any.extract_string()).
static String id()
          Return the IString repository id.
static void insert(Any a, String that)
          Insert the IString into Any (uses Any.insert_string(java.lang.String)).
static String read(InputStream istream)
          Calls InputStream.read_string().
static TypeCode type()
          Return an alias typecode.
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

IstringHelper

public IstringHelper()
Method Detail

insert

public static void insert(Any a,
                          String that)
Insert the IString 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 IString from Any ((uses Any.extract_string()).

Parameters:
a - the Any to extract from.

type

public static TypeCode type()
Return an alias typecode.


id

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

Returns:
"IDL:omg.org/CosNaming/Istring: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 (IString) value to write.