|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fesenmeyer.dbnormalizer.core.configuration.xml.DOMDocumentWriter
public class DOMDocumentWriter
Class which provides writing an arbitrary DOM-document to an OutputStream, e.g. a file.
Document
Field Summary | |
---|---|
private Document |
doc
The DOM-document. |
Constructor Summary | |
---|---|
DOMDocumentWriter(Document doc)
Class constructor specifying the DOM-document to be written to a file. |
Method Summary | |
---|---|
void |
write(OutputStream oStream)
Writes the DOM-Document to the OutputStream specified by argument oStream. |
void |
write(String fileName)
Writes the DOM-Document to the file specified by the argument fileName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Document doc
Constructor Detail |
---|
public DOMDocumentWriter(Document doc)
doc
- the DOM-documentMethod Detail |
---|
public void write(OutputStream oStream) throws TransformerException
oStream
- the OutputStream to which should be written
TransformerException
- if a XML-Transformer specific exception occurs
(e.g. if no TransformerFactory is available).public void write(String fileName) throws TransformerException, IOException
fileName
- the path of the file to which should be written
TransformerException
- if a XML-Transformer specific exception occurs
(e.g. if no TransformerFactory is available).
IOException
- if an IO-specific exception occurs (e.g. if there are
no rights to write the file).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |