| Package | Description |
|---|---|
| org.apache.ddlutils.io |
The
org.apache.ddlutils.io package contains a classes for input
and output of both the database schemas and data files. |
| Modifier and Type | Class and Description |
|---|---|
class |
DataWriterException
Exception generated by the
DataWriter. |
| Modifier and Type | Method and Description |
|---|---|
void |
PrettyPrintingXmlWriter.indentIfPrettyPrinting(int level)
Prints the indentation if we're pretty-printing.
|
void |
PrettyPrintingXmlWriter.printlnIfPrettyPrinting()
Prints a newline if we're pretty-printing.
|
Database |
DatabaseIO.read(File file)
Reads the database model contained in the specified file.
|
void |
DataReader.read(File file)
Reads the data contained in the specified file.
|
Database |
DatabaseIO.read(InputSource source)
Reads the database model from the given input source.
|
void |
DataReader.read(InputSource source)
Reads the data from the given input source.
|
void |
DataReader.read(InputStream input)
Reads the data given by the input stream.
|
Database |
DatabaseIO.read(Reader reader)
Reads the database model given by the reader.
|
void |
DataReader.read(Reader reader)
Reads the data given by the reader.
|
Database |
DatabaseIO.read(String filename)
Reads the database model contained in the specified file.
|
void |
DataReader.read(String filename)
Reads the data contained in the specified file.
|
void |
PrettyPrintingXmlWriter.setDefaultNamespace(String uri)
Sets the default namespace.
|
protected void |
DataWriter.throwException(Exception baseEx)
Rethrows the given exception, wrapped in a
DdlUtilsXMLException. |
protected void |
PrettyPrintingXmlWriter.throwException(Exception baseEx)
Rethrows the given exception, wrapped in a
DdlUtilsXMLException. |
void |
ModelValidator.validate(Source source)
Validates the given xml document using the Java XML validation framework.
|
void |
DatabaseIO.write(Database model,
OutputStream output)
Writes the database model to the given output stream.
|
void |
DatabaseIO.write(Database model,
String filename)
Writes the database model to the specified file.
|
void |
DatabaseIO.write(Database model,
Writer output)
Writes the database model to the given output writer.
|
void |
PrettyPrintingXmlWriter.writeAttribute(String namespaceUri,
String localPart,
String value)
Writes an XML attribute.
|
void |
PrettyPrintingXmlWriter.writeCData(String data)
Writes a CDATA segment.
|
void |
PrettyPrintingXmlWriter.writeCharacters(String data)
Writes a text segment.
|
void |
DataWriter.writeDocumentEnd()
Writes the end of the XML document, including the end of the outermost
XML element (
data). |
void |
PrettyPrintingXmlWriter.writeDocumentEnd()
Writes the end of the XML document, i.e.
|
void |
DataWriter.writeDocumentStart()
Writes the start of the XML document, including the start of the outermost
XML element (
data). |
void |
PrettyPrintingXmlWriter.writeDocumentStart()
Writes the start of the XML document, i.e.
|
void |
PrettyPrintingXmlWriter.writeElementEnd()
Writes the end of the current XML element.
|
void |
PrettyPrintingXmlWriter.writeElementStart(String namespaceUri,
String localPart)
Writes the start of the indicated XML element.
|
void |
PrettyPrintingXmlWriter.writeNamespace(String prefix,
String namespaceUri)
Writes a xmlns attribute to the stream.
|
| Constructor and Description |
|---|
PrettyPrintingXmlWriter(OutputStream output)
Creates a xml writer instance using UTF-8 encoding.
|
PrettyPrintingXmlWriter(OutputStream output,
String encoding)
Creates a xml writer instance.
|
PrettyPrintingXmlWriter(Writer output,
String encoding)
Creates a xml writer instance using the specified writer.
|
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.