|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.io.DataWriter
Writes dyna beans matching a specified database model into an XML file. TODO: Make names (tables, columns) XML-compliant
Constructor Summary | |
DataWriter(OutputStream output)
Creates a data writer instance using UTF-8 encoding. |
|
DataWriter(OutputStream output,
String encoding)
Creates a data writer instance. |
|
DataWriter(Writer output,
String encoding)
Creates a data writer instance using the specified writer. |
Method Summary | |
ConverterConfiguration |
getConverterConfiguration()
Returns the converter configuration of this data reader. |
boolean |
isPrettyPrinting()
Determines whether the output shall be pretty-printed. |
void |
setPrettyPrinting(boolean prettyPrinting)
Specifies whether the output shall be pretty-printed. |
void |
write(Collection beans)
Writes the beans contained in the given collection. |
void |
write(Iterator beans)
Writes the beans contained in the given iterator. |
void |
write(SqlDynaBean bean)
Writes the given bean. |
void |
writeDocumentEnd()
Writes the end of the XML document, i.e. |
void |
writeDocumentStart()
Writes the start of the XML document, i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataWriter(OutputStream output) throws DataWriterException
output
- The target to write the data XML topublic DataWriter(OutputStream output, String encoding) throws DataWriterException
output
- The target to write the data XML toencoding
- The encoding of the XML filepublic DataWriter(Writer output, String encoding) throws DataWriterException
output
- The target to write the data XML toencoding
- The encoding of the writerMethod Detail |
public boolean isPrettyPrinting()
true
if the output is pretty-printedpublic void setPrettyPrinting(boolean prettyPrinting)
prettyPrinting
- true
if the output is pretty-printedpublic ConverterConfiguration getConverterConfiguration()
public void writeDocumentStart() throws DataWriterException
DataWriterException
public void writeDocumentEnd() throws DataWriterException
DataWriterException
public void write(SqlDynaBean bean) throws DataWriterException
bean
- The bean to write
DataWriterException
public void write(Iterator beans) throws DataWriterException
beans
- The beans iterator
DataWriterException
public void write(Collection beans) throws DataWriterException
beans
- The beans
DataWriterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |