edu.isi.pegasus.planner.partitioner
public class PDAXWriter extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PDAXWriter(String name,
String fileName)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String XML_VERSION
public static final String XML_NAMESPACE
private PrintWriter mWriteHandle
private LogManager mLogger
private String mName
private String mFileName
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()