| java.lang.Object org.griphyn.cPlanner.partitioner.PDAXWriter
PDAXWriter | public class PDAXWriter (Code) | | It writes out the partition graph in xml form.
author: Karan Vahi version: $Revision: 124 $ |
Field Summary | |
final public static String | XML_NAMESPACE | final public static String | XML_VERSION The version of the associated xml schema, to which the pdax files being
written conform to. |
Method Summary | |
public void | close() Close the xml file that is written. | public void | write(Partition p) Writes out a partition to the associate XML stream. | public void | write(String st) Writes out to the file. | public void | writeHeader() Writes out the opening element of the xml document. | public void | writeln(String st) Writes out to the file. |
XML_VERSION | final public static String XML_VERSION(Code) | | The version of the associated xml schema, to which the pdax files being
written conform to.
|
PDAXWriter | public PDAXWriter(String name, String fileName)(Code) | | The overloaded constructor.
Parameters: name - the name that is assigned to the pdax. Parameters: fileName - the path to the xml file that has to be written. |
close | public void close()(Code) | | Close the xml file that is written.
|
write | public void write(Partition p) throws IOException(Code) | | Writes out a partition to the associate XML stream.
Parameters: p - the partition to be written to the stream. exception: IOException - if something fishy happens to the stream. |
write | public void write(String st)(Code) | | Writes out to the file.
Parameters: st - String |
writeHeader | public void writeHeader()(Code) | | Writes out the opening element of the xml document.
|
writeln | public void writeln(String st)(Code) | | Writes out to the file.
Parameters: st - String |
|
|