org.omg.CosNaming

Class 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.
Method Summary
static Stringextract(Any a)
Extract the IString from Any ((uses {@link Any#extract_string}).
static Stringid()
Return the IString repository id.
static voidinsert(Any a, String that)
Insert the IString into Any (uses {@link Any#insert_string}).
static Stringread(InputStream istream)
Calls {@link InputStream#read_string()}.
static TypeCodetype()
Return an alias typecode.
static voidwrite(OutputStream ostream, String value)
Calls {@link OutputStream#write_string(String)}.

Method Detail

extract

public static String extract(Any a)
Extract the IString from Any ((uses {@link Any#extract_string}).

Parameters: a the Any to extract from.

id

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

Returns: "IDL:omg.org/CosNaming/Istring:1.0", always.

insert

public static void insert(Any a, String that)
Insert the IString into Any (uses {@link Any#insert_string}).

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

read

public static String read(InputStream istream)
Calls {@link InputStream#read_string()}.

Parameters: istream the stream to read from.

type

public static TypeCode type()
Return an alias typecode.

write

public static void write(OutputStream ostream, String value)
Calls {@link OutputStream#write_string(String)}.

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