org.omg.PortableInterceptor
Class AdapterStateHelper

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

public abstract class AdapterStateHelper
extends Object

A helper operations for the adapter state. An adapter state is an short integer constant and needs no helper, but the one is included anyway.

Since:
1.5

Constructor Summary
AdapterStateHelper()
           
 
Method Summary
static short extract(Any any)
          Extract the short from given Any.
static String id()
          Get the adapter state repository id.
static void insert(Any any, short that)
          Insert the short into the given Any.
static short read(InputStream input)
          Read the short (adapter state) from the CDR intput stream.
static TypeCode type()
          Create the AdapterState typecode (alias of short, named "AdapterState").
static void write(OutputStream output, short value)
          Write the short (adapter state) to the CDR output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterStateHelper

public AdapterStateHelper()
Method Detail

type

public static TypeCode type()
Create the AdapterState typecode (alias of short, named "AdapterState").


insert

public static void insert(Any any,
                          short that)
Insert the short into the given Any.


extract

public static short extract(Any any)
Extract the short from given Any.

Throws:
BAD_OPERATION - if the passed Any does not contain int.

id

public static String id()
Get the adapter state repository id.

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

read

public static short read(InputStream input)
Read the short (adapter state) from the CDR intput stream.

Parameters:
input - a org.omg.CORBA.portable stream to read from.

write

public static void write(OutputStream output,
                         short value)
Write the short (adapter state) to the CDR output stream.

Parameters:
output - a org.omg.CORBA.portable stream stream to write into.
value - a value to write.