public class PDAXWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
mFileName
The fully qaulified path to the file being written.
|
private LogManager |
mLogger
The handle to the logging object.
|
private java.lang.String |
mName
The name assigned to the pdax file being written.
|
private java.io.PrintWriter |
mWriteHandle
The write handle to the xml file being written.
|
static java.lang.String |
XML_NAMESPACE |
static java.lang.String |
XML_VERSION
The version of the associated xml schema, to which the pdax files being
written conform to.
|
Constructor and Description |
---|
PDAXWriter(java.lang.String name,
java.lang.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(java.lang.String st)
Writes out to the file.
|
void |
writeHeader()
Writes out the opening element of the xml document.
|
void |
writeln(java.lang.String st)
Writes out to the file.
|
public static final java.lang.String XML_VERSION
public static final java.lang.String XML_NAMESPACE
private java.io.PrintWriter mWriteHandle
private LogManager mLogger
private java.lang.String mName
private java.lang.String mFileName
public PDAXWriter(java.lang.String name, java.lang.String fileName)
name
- the name that is assigned to the pdax.fileName
- the path to the xml file that has to be written.public void writeHeader()
public void write(Partition p) throws java.io.IOException
p
- the partition to be written to the stream.java.io.IOException
- if something fishy happens to the stream.public void write(java.lang.String st)
st
- Stringpublic void writeln(java.lang.String st)
st
- Stringpublic void close()