|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.partitioner.PDAXWriter
public class PDAXWriter
It writes out the partition graph in xml form.
| Field Summary | |
|---|---|
private String |
mFileName
The fully qaulified path to the file being written. |
private LogManager |
mLogger
The handle to the logging object. |
private String |
mName
The name assigned to the pdax file being written. |
private PrintWriter |
mWriteHandle
The write handle to the xml file being written. |
static String |
XML_NAMESPACE
|
static String |
XML_VERSION
The version of the associated xml schema, to which the pdax files being written conform to. |
| Constructor Summary | |
|---|---|
PDAXWriter(String name,
String fileName)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close the xml file that is written. |
void |
write(Partition p)
Writes out a partition to the associate XML stream. |
void |
write(String st)
Writes out to the file. |
void |
writeHeader()
Writes out the opening element of the xml document. |
void |
writeln(String st)
Writes out to the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XML_VERSION
public static final String XML_NAMESPACE
private PrintWriter mWriteHandle
private LogManager mLogger
private String mName
private String mFileName
| Constructor Detail |
|---|
public PDAXWriter(String name,
String fileName)
name - the name that is assigned to the pdax.fileName - the path to the xml file that has to be written.| Method Detail |
|---|
public void writeHeader()
public void write(Partition p)
throws IOException
p - the partition to be written to the stream.
IOException - if something fishy happens to the stream.public void write(String st)
st - Stringpublic void writeln(String st)
st - Stringpublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||