org.ipdr.xdr
Class IPDRXDRRecordHelper

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

public abstract class IPDRXDRRecordHelper
extends java.lang.Object

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


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

Constructor Detail

IPDRXDRRecordHelper

public IPDRXDRRecordHelper()
Method Detail

read

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

Parameters:
istream - Input stream to read from
tlist - List of Composite Types
Returns:
IPDR Record 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,
                         IPDRRecord value)
                  throws java.io.IOException,
                         IPDRException
Method used to write a IPDR Record to the output stream.

Parameters:
ostream - Output stream to write to
value - IPDR Record to write
Throws:
java.io.IOException - when an exception occurs while writing
IPDRException