org.omg.PortableInterceptor
Class ServerIdHelper

java.lang.Object
  extended by org.omg.PortableInterceptor.ServerIdHelper

public abstract class ServerIdHelper
extends Object

The Server Id is defined in OMG specification just as a narrow (not wide) string. As such, the Server Id needs no helper, but one is included in the API anyway.

Since:
1.5

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

ServerIdHelper

public ServerIdHelper()
Method Detail

insert

public static void insert(Any a,
                          String that)
Insert the Server Id 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 Server Id 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 Server Id repository id.

Returns:
"IDL:omg.org/PortableInterceptor/ServerId:1.0", always.

read

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

Parameters:
input - the stream to read from.

write

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

Parameters:
output - the stream to write into.
value - the string (Server Id) value to write.