|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cysols.iodef.XMLFileWriter
public class XMLFileWriter
Write the XML docuemnt to file.
| Constructor Summary | |
|---|---|
XMLFileWriter()
|
|
| Method Summary | |
|---|---|
protected boolean |
createDirs(String filePath)
Creats the parent directorys and the parent dir if the specified path or parent dir are not present. |
void |
write(String fileName,
IElement element)
Writes the specified element by xml to specified file. |
void |
write(String fileName,
String rootName,
IElement element)
Writes the specified element with specified root name by xml to specified file. |
void |
write(String fileName,
String rootName,
IElement[] elements)
Writes the specified element with specified root name by xml to specified file. |
protected void |
writeToFile(Document doc,
String filePath)
|
protected void |
writeToFile(Document doc,
String filePath,
String dtdFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLFileWriter()
| Method Detail |
|---|
public void write(String fileName,
String rootName,
IElement[] elements)
throws XMLWriteException
fileName - a xml file namerootName - root element nameelements - the array of element instance.
XMLWriteException - if writing goes wrong
public void write(String fileName,
String rootName,
IElement element)
throws XMLWriteException
fileName - a xml file namerootName - root element nameelement - element instance.
XMLWriteException - if writing goes wrong
public void write(String fileName,
IElement element)
throws XMLWriteException
fileName - - xml file nameelement - - element instance.
XMLWriteException - if writing goes wrong
protected void writeToFile(Document doc,
String filePath)
throws XMLWriteException
XMLWriteException
protected void writeToFile(Document doc,
String filePath,
String dtdFile)
throws XMLWriteException
XMLWriteExceptionprotected boolean createDirs(String filePath)
filePath - file name to write.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||