org.ipdr.xdr
Class IPDRXDRHeaderHelper

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

public abstract class IPDRXDRHeaderHelper
extends java.lang.Object

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


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

Constructor Detail

IPDRXDRHeaderHelper

public IPDRXDRHeaderHelper()
Method Detail

read

public static IPDRHeader read(XDRUnMarshaller istream)
                       throws java.io.IOException,
                              IPDRException
Method used to read a IPDR Header from the input stream.

Parameters:
istream - Input stream to read from
Returns:
IPDR Header read
Throws:
java.io.IOException - when an exception occurs while reading
IPDRException - when a IPDR functionality related exception occurs

write

public static void write(XDRMarshaller ostream,
                         IPDRHeader value)
                  throws java.io.IOException
Method used to write a IPDR Header to the output stream.

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