org.ipdr.xdr
Class RecordDescriptorHelper

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

public abstract class RecordDescriptorHelper
extends java.lang.Object

This class is used for writing Record Descriptors to the output stream and reading Record Descriptors from the input stream.


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

Constructor Detail

RecordDescriptorHelper

public RecordDescriptorHelper()
Method Detail

read

public static RecordDescriptor read(XDRUnMarshaller istream)
                             throws java.io.IOException,
                                    IPDRException
Method used to read a Record Descriptor from the input stream.

Parameters:
istream - Input stream to read from
Returns:
Record Descriptor 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,
                         RecordDescriptor value)
                  throws java.io.IOException
Method used to write a Record Descriptor to the output stream.

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