Package lbnl.util
Class XMLWriter
- java.lang.Object
 - 
- lbnl.util.XMLWriter
 
 
- 
public class XMLWriter extends java.lang.ObjectClass for writing xml documents.- Since:
 - Ptolemy II 8.0
 - Version:
 - $Id$
 - Author:
 - Michael Wetter
 
 
- 
- 
Constructor Summary
Constructors Constructor Description XMLWriter(java.lang.String fileDirectory, java.lang.String fileName, int portNo)Construct an instance and assign all data members. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] arg)Main method that can be used for testing.voidwrite()Write the xml file. 
 - 
 
- 
- 
Constructor Detail
- 
XMLWriter
public XMLWriter(java.lang.String fileDirectory, java.lang.String fileName, int portNo)Construct an instance and assign all data members.- Parameters:
 fileDirectory- The system-dependent directory name.fileName- The system-dependent filename.portNo- The port number for BSD socket.
 
 - 
 
- 
Method Detail
- 
write
public void write() throws java.io.FileNotFoundException, java.io.IOExceptionWrite the xml file.- Throws:
 java.io.FileNotFoundException- If the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason.java.io.IOException- if an I/O error occurs.
 
- 
main
public static void main(java.lang.String[] arg)
Main method that can be used for testing.- Parameters:
 arg- An array of Strings, the first argument being a integer that names a file called test-XXX.txt.
 
 - 
 
 -