org.ipdr.xml
Class IPDRXMLDocEndHelper

java.lang.Object
  extended by org.ipdr.xml.IPDRXMLDocEndHelper

public abstract class IPDRXMLDocEndHelper
extends java.lang.Object

This class is used for writing IPDR DocEnd to the IPDRDoc in XML format and reading IPDR DocEnd from the IPDRDoc in XML format.


Constructor Summary
IPDRXMLDocEndHelper()
           
 
Method Summary
static IPDRDocEnd read(XMLUnMarshaller istream)
          Method to read the DocEnd information from IPDRDoc in XML format.
static void write(XMLMarshaller ostream, int ipdrCount, long endTime, boolean settlementDoc)
          Method to write the DocEnd information to IPDRDoc in XML format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPDRXMLDocEndHelper

public IPDRXMLDocEndHelper()
Method Detail

write

public static void write(XMLMarshaller ostream,
                         int ipdrCount,
                         long endTime,
                         boolean settlementDoc)
                  throws java.io.IOException
Method to write the DocEnd information to IPDRDoc in XML format.

Parameters:
ostream - Object of XMLMarshaller
ipdrCount - Total number of records
endTime - End time
Throws:
java.io.IOException - when an exception occurs while writing

read

public static IPDRDocEnd read(XMLUnMarshaller istream)
                       throws java.io.IOException,
                              IPDRException
Method to read the DocEnd information from IPDRDoc in XML format.

Parameters:
istream - Object of XMLUnMarshaller
Returns:
IPDR DocEnd read
Throws:
java.io.IOException - when an exception occurs while reading
IPDRException