com.isti.quakewatch.common.qw_services.QWServicesPackage
Class ByteArrayHelper

java.lang.Object
  extended by com.isti.quakewatch.common.qw_services.QWServicesPackage.ByteArrayHelper

public class ByteArrayHelper
extends java.lang.Object

Helper class for : ByteArray


Constructor Summary
ByteArrayHelper()
           
 
Method Summary
static byte[] extract(org.omg.CORBA.Any a)
          Extract ByteArray from an any
static java.lang.String id()
          Return the ByteArray IDL ID
static void insert(org.omg.CORBA.Any a, byte[] t)
          Insert ByteArray into an any
static byte[] read(org.omg.CORBA.portable.InputStream istream)
          Read ByteArray from a marshalled stream
static org.omg.CORBA.TypeCode type()
          Return the ByteArray TypeCode
static void write(org.omg.CORBA.portable.OutputStream ostream, byte[] value)
          Write ByteArray into a marshalled stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayHelper

public ByteArrayHelper()
Method Detail

insert

public static void insert(org.omg.CORBA.Any a,
                          byte[] t)
Insert ByteArray into an any

Parameters:
a - an any
t - ByteArray value

extract

public static byte[] extract(org.omg.CORBA.Any a)
Extract ByteArray from an any

Parameters:
a - an any
Returns:
the extracted ByteArray value

type

public static org.omg.CORBA.TypeCode type()
Return the ByteArray TypeCode

Returns:
a TypeCode

id

public static java.lang.String id()
Return the ByteArray IDL ID

Returns:
an ID

read

public static byte[] read(org.omg.CORBA.portable.InputStream istream)
Read ByteArray from a marshalled stream

Parameters:
istream - the input stream
Returns:
the readed ByteArray value

write

public static void write(org.omg.CORBA.portable.OutputStream ostream,
                         byte[] value)
Write ByteArray into a marshalled stream

Parameters:
ostream - the output stream
value - ByteArray value