|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cysols.iodef.XMLFileWriter
com.cysols.iodef.IodefXMLFileWriter
public class IodefXMLFileWriter
Write the XML docuemnt to file.
| Constructor Summary | |
|---|---|
IodefXMLFileWriter()
Default constructor. |
|
IodefXMLFileWriter(String file)
Sets the specified file name. |
|
| Method Summary | |
|---|---|
void |
setFile(String file)
Sets the specified file name. |
void |
validWrite(IODEFDocument iodef)
Validates the iodef document and writes with XML document included iodef document to a file if validation is passed. |
void |
validWrite(String key,
IODEFDocument iodef)
Validates the iodef document and writes with XML document included iodef document to a file if validation is passed. |
void |
write(Document doc)
Writes the specified iodef document to file. |
void |
write(IODEFDocument iodef)
Writes the specified iodef document to file. |
void |
write(String key,
Document doc)
Writes the specified iodef document to file. |
void |
write(String key,
IODEFDocument iodef)
Writes the specified iodef document to file. |
| Methods inherited from class com.cysols.iodef.XMLFileWriter |
|---|
createDirs, write, write, write, writeToFile, writeToFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IodefXMLFileWriter(String file)
file - file name to store.public IodefXMLFileWriter()
| Method Detail |
|---|
public void setFile(String file)
file - file name to store.
public void write(Document doc)
throws XMLWriteException
write in interface DocumentWriterdoc - iodef document
XMLWriteException - if writing goes wrong
public void write(String key,
Document doc)
throws XMLWriteException
write in interface DocumentWriterdoc - an iodef documentkey - this value isn't used by this method.
XMLWriteException - if writing goes wrong
public void write(IODEFDocument iodef)
throws XMLWriteException
write in interface IodefDocumentWriteriodef - an iodef document
XMLWriteException - if writing goes wrong
public void write(String key,
IODEFDocument iodef)
throws XMLWriteException
write in interface IodefDocumentWriterkey - Not used.iodef - an iodef document
XMLWriteException - if writing goes wrong
public void validWrite(String key,
IODEFDocument iodef)
throws XMLValidationError,
XMLWriteException
validWrite in interface IodefDocumentWriterkey - Not usediodef - an iodef docuemnt
XMLValidationError - if validation is not passed
XMLWriteException - if writing goes wrong
public void validWrite(IODEFDocument iodef)
throws XMLValidationError,
XMLWriteException
validWrite in interface IodefDocumentWriteriodef - an iodef docuemnt
XMLValidationError - if validation is not passed
XMLWriteException - if writing goes wrong
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||