org.ipdr.xml
Class XMLMarshaller

java.lang.Object
  extended by java.io.OutputStream
      extended by org.ipdr.xml.XMLMarshaller
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class XMLMarshaller
extends java.io.OutputStream

This class will write objects to Output Stream in the XML format.


Field Summary
protected  java.lang.String ipdrVersion_
          String containing IPDR Version
protected  java.io.OutputStream targetStream_
           
 
Constructor Summary
XMLMarshaller(java.io.OutputStream os)
          Constructor.
 
Method Summary
 java.lang.String getVersion()
          Method to get the IPDR Version.
 void setVersion(java.lang.String ver)
          Method to set the IPDR Version.
 void write(int i)
          Method to write an 'int' to the Output stream.
 void write(java.lang.String str)
          Method to write a String to the Output stream.
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetStream_

protected java.io.OutputStream targetStream_

ipdrVersion_

protected java.lang.String ipdrVersion_
String containing IPDR Version

Constructor Detail

XMLMarshaller

public XMLMarshaller(java.io.OutputStream os)
Constructor. Sets the Output stream.

Parameters:
os - Output stream.
Method Detail

setVersion

public void setVersion(java.lang.String ver)
Method to set the IPDR Version.

Parameters:
ver - IPDR Version.

getVersion

public java.lang.String getVersion()
Method to get the IPDR Version.

Returns:
IPDR Version

write

public void write(java.lang.String str)
           throws java.io.IOException
Method to write a String to the Output stream.

Parameters:
str - String to write
Throws:
java.io.IOException - Description of Exception

write

public void write(int i)
Method to write an 'int' to the Output stream.

Specified by:
write in class java.io.OutputStream
Parameters:
i - Int to write