org.ipdr.xdr
Class IPDRStreamElementHelper

java.lang.Object
  extended by org.ipdr.xdr.IPDRStreamElementHelper

public abstract class IPDRStreamElementHelper
extends java.lang.Object

This class is used for writing IPDR Stream Elements to the output stream and reading IPDR Stream Elements from the input stream.


Constructor Summary
IPDRStreamElementHelper()
           
 
Method Summary
static IPDRStreamElement read(XDRUnMarshaller istream)
          Method used to read IPDR Stream Elements from the input stream.
static IPDRStreamElement read(XDRUnMarshaller istream, CompositeType[] tlist)
          Method used to read IPDR Stream Elements from the input stream.
static void write(XDRMarshaller ostream, IPDRStreamElement value)
          Method used to write IPDR Stream Elements to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPDRStreamElementHelper

public IPDRStreamElementHelper()
Method Detail

read

public static IPDRStreamElement read(XDRUnMarshaller istream,
                                     CompositeType[] tlist)
                              throws java.io.IOException,
                                     BadCompositeException,
                                     IPDRException
Method used to read IPDR Stream Elements from the input stream.

Parameters:
istream - Input stream to read from
tlist - List of Composite Types
Returns:
IPDR Stream Element read
Throws:
java.io.IOException - when an exception occurs while reading
IPDRException - when a IPDR functionality related exception occurs
BadCompositeException - when an exception occurs creation of Composite Data

read

public static IPDRStreamElement read(XDRUnMarshaller istream)
                              throws java.io.IOException,
                                     BadCompositeException,
                                     IPDRException
Method used to read IPDR Stream Elements from the input stream.

Parameters:
istream - Input stream to read from
Returns:
IPDR Stream Element read
Throws:
java.io.IOException - when an exception occurs while reading
IPDRException - when a IPDR functionality related exception occurs
BadCompositeException - when an exception occurs creation of Composite Data

write

public static void write(XDRMarshaller ostream,
                         IPDRStreamElement value)
                  throws java.io.IOException,
                         IPDRException
Method used to write IPDR Stream Elements to the output stream.

Parameters:
ostream - Output stream to write to
value - IPDR Stream Element to write
Throws:
java.io.IOException - when an exception occurs while writing
IPDRException - when a IPDR functionality related exception occurs