Formattable, implementing all the
various convenience overloads.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Configuration |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final void | attach(Configuration
A configuration or c)null, if you wish to
detach this Attachable from its previous
configuration.Implements org. Configuration.
|
| public final Configuration | configuration()
Implements org. Configuration, or null if
no Configuration is attached.
|
| pack-priv abstract JSONFormat | |
| pack-priv abstract XMLFormat | |
| public final void | |
| public final String | format()
Implements org. |
| public final String | format(int
The maximum number of records to include in the
formatted result maxRecords)Implements org. |
| public final String | format(TXTFormat
The formatting information format)Implements org. |
| public final void | format(OutputStream stream)
Implements org. format(), but the data is output onto an OutputStream.
|
| public final void | format(OutputStream stream, int maxRecords)
Implements org. format(int), but the data is output onto an OutputStream.
|
| public final void | format(OutputStream stream, TXTFormat format)
Implements org. format(TXTFormat), but the data is output onto an OutputStream.
|
| public final void | format(Writer writer)
Implements org. format(), but the data is output onto a Writer.
|
| public final void | format(Writer writer, int maxRecords)
Implements org. format(int), but the data is output onto a Writer.
|
| public final String | |
| public final String | formatChart(ChartFormat format)
Implements org. |
| public final void | formatChart(OutputStream stream)
Implements org. formatChart(), but the data is output onto an OutputStream.
|
| public final void | formatChart(OutputStream stream, ChartFormat format)
Implements org. formatChart(ChartFormat), but the data is output onto an OutputStream.
|
| public final void | formatChart(Writer writer)
Implements org. formatChart(), but the data is output onto a Writer.
|
| public final String | formatCSV()
Implements org. |
| public final String | formatCSV(boolean
Whether to emit a CSV header line header)Implements org. |
| public final String | formatCSV(char
The delimiter to use between records delimiter)Implements org. |
| public final String | formatCSV(boolean
Whether to emit a CSV header line header, char The delimiter to use between records delimiter)Implements org. |
| public final String | formatCSV(char
The delimiter to use between records delimiter, String A special string for encoding nullString)NULL values.Implements org. |
| public final String | formatCSV(boolean
Whether to emit a CSV header line header, char The delimiter to use between records delimiter, String A special string for encoding nullString)NULL values.Implements org. |
| public final String | formatCSV(CSVFormat format)
Implements org. |
| public final void | formatCSV(OutputStream stream)
Implements org. formatCSV(), but the data is output onto an OutputStream.
|
| public final void | formatCSV(OutputStream stream, boolean header)
Implements org. formatCSV(boolean), but the data is output onto an OutputStream.
|
| public final void | formatCSV(OutputStream stream, char delimiter)
Implements org. formatCSV(char), but the data is output onto an OutputStream.
|
| public final void | formatCSV(OutputStream stream, boolean header, char delimiter)
Implements org. formatCSV(boolean, char), but the data is output onto an OutputStream.
|
| public final void | formatCSV(OutputStream stream, char delimiter, String nullString)
Implements org. formatCSV(char, String), but the data is output onto an OutputStream.
|
| public final void | formatCSV(OutputStream stream, boolean header, char delimiter, String nullString)
Implements org. formatCSV(boolean, char, String), but the data is output onto an OutputStream.
|
| public final void | formatCSV(OutputStream stream, CSVFormat format)
Implements org. formatCSV(CSVFormat), but the data is output onto an OutputStream.
|
| public final void | formatCSV(Writer writer)
Implements org. formatCSV(), but the data is output onto a Writer.
|
| public final void | formatCSV(Writer writer, boolean header)
Implements org. formatCSV(boolean), but the data is output onto a Writer.
|
| public final void | formatCSV(Writer writer, char delimiter)
Implements org. formatCSV(char), but the data is output onto a Writer.
|
| public final void | formatCSV(Writer writer, boolean header, char delimiter)
Implements org. formatCSV(boolean, char), but the data is output onto a Writer.
|
| public final void | formatCSV(Writer writer, char delimiter, String nullString)
Implements org. formatCSV(char, String), but the data is output onto a Writer.
|
| public final void | formatCSV(Writer writer, boolean header, char delimiter, String nullString)
Implements org. formatCSV(boolean, char, String), but the data is output onto a Writer.
|
| public final String | formatHTML()
Implements org. |
| public final void | formatHTML(OutputStream stream)
Implements org. formatHTML(), but the data is output onto an OutputStream.
|
| public final String | formatInsert()
Implements org. INSERT statements.
|
| public final void | formatInsert(OutputStream stream)
Implements org. formatInsert(), but the data is output onto an OutputStream.
|
| public final String | formatInsert(Table<?> table, Field<?>... f)
Implements org.
Deprecated
as a consequence of
Get this result as a set of Field being deprecated.
INSERT statements.
|
| public final void | formatInsert(OutputStream stream, Table<?> table, Field<?>... f)
Implements org.
Deprecated
as a consequence of
Like Field being deprecated.
formatInsert(Table, Field., but the data is output onto an OutputStream.
|
| public final String | formatJSON()
Implements org. |
| public final String | formatJSON(JSONFormat format)
Implements org. |
| public final void | formatJSON(OutputStream stream)
Implements org. formatJSON(), but the data is output onto an OutputStream.
|
| public final void | formatJSON(OutputStream stream, JSONFormat format)
Implements org. formatJSON(JSONFormat), but the data is output onto an OutputStream.
|
| public final void | formatJSON(Writer writer)
Implements org. formatJSON(), but the data is output onto a Writer.
|
| public final String | |
| public final String | formatXML(XMLFormat format)
Implements org. |
| public final void | formatXML(OutputStream stream)
Implements org. formatXML(), but the data is output onto an OutputStream.
|
| public final void | formatXML(OutputStream stream, XMLFormat format)
Implements org. formatXML(XMLFormat), but the data is output onto an OutputStream.
|
| public final void | formatXML(Writer writer)
Implements org. formatXML(), but the data is output onto a Writer.
|
| pack-priv abstract List | |
| public final Document | |
| public final <H extends ContentHandler> H | intoXML(H
The custom content handler. handler)Implements org. ContentHandler.
|
| configuration | back to summary |
|---|---|
| pack-priv Configuration configuration | |
| AbstractFormattable | back to summary |
|---|---|
| pack-priv AbstractFormattable(Configuration configuration) | |
| attach | back to summary |
|---|---|
| public final void attach(Configuration c) Implements org. Doc from org. Attach this object to a new
| |
| configuration | back to summary |
|---|---|
| public final Configuration configuration() Implements org. Doc from org. Get the currently attached
| |
| defaultJSONFormat | back to summary |
|---|---|
| pack-priv abstract JSONFormat defaultJSONFormat() | |
| defaultXMLFormat | back to summary |
|---|---|
| pack-priv abstract XMLFormat defaultXMLFormat() | |
| detach | back to summary |
|---|---|
| public final void detach() Implements org. Doc from org. Detach this object from its current
This is the same as calling
| |
| format | back to summary |
|---|---|
| public final String format() Implements org. Doc from org. Get a simple formatted representation of this result.
This is the same as calling | |
| format | back to summary |
|---|---|
| public final String format(int maxRecords) Implements org. Doc from org. Get a simple formatted representation of this result. | |
| format | back to summary |
|---|---|
| public final String format(TXTFormat format) Implements org. Doc from org. Get a simple formatted representation of this result. | |
| format | back to summary |
|---|---|
| public final void format(OutputStream stream) Implements org. Doc from org. Like
| |
| format | back to summary |
|---|---|
| public final void format(OutputStream stream, int maxRecords) Implements org. Doc from org. Like
| |
| format | back to summary |
|---|---|
| public final void format(OutputStream stream, TXTFormat format) Implements org. Doc from org. Like
| |
| format | back to summary |
|---|---|
| public final void format(Writer writer) Implements org. Doc from org. Like
| |
| format | back to summary |
|---|---|
| public final void format(Writer writer, int maxRecords) Implements org. Doc from org. Like
| |
| formatChart | back to summary |
|---|---|
| public final String formatChart() Implements org. Doc from org. Get this result as an ASCII chart.
| |
| formatChart | back to summary |
|---|---|
| public final String formatChart(ChartFormat format) Implements org. Doc from org. Get this result as an ASCII chart. When running a query like this: Where the formatted result would look like this:
+-------------------------+-----+ |BOOK_STORE_NAME |books| +-------------------------+-----+ |Buchhandlung im Volkshaus| 1| |Ex Libris | 2| |Orell Füssli | 3| +-------------------------+-----+Then the chart might look something like this:
3.00| █████████████████████████
2.91| █████████████████████████
2.82| █████████████████████████
2.73| █████████████████████████
2.64| █████████████████████████
2.55| █████████████████████████
2.45| █████████████████████████
2.36| █████████████████████████
2.27| █████████████████████████
2.18| █████████████████████████
2.09| █████████████████████████
2.00| ██████████████████████████████████████████████████
1.91| ██████████████████████████████████████████████████
1.82| ██████████████████████████████████████████████████
1.73| ██████████████████████████████████████████████████
1.64| ██████████████████████████████████████████████████
1.55| ██████████████████████████████████████████████████
1.45| ██████████████████████████████████████████████████
1.36| ██████████████████████████████████████████████████
1.27| ██████████████████████████████████████████████████
1.18| ██████████████████████████████████████████████████
1.09| ██████████████████████████████████████████████████
1.00|███████████████████████████████████████████████████████████████████████████
----+---------------------------------------------------------------------------
| Buchhandlung im Volkshaus Ex Libris Orell Füssli
It is possible to specify a variety of ChartFormat formatting
specifications, such as the width, height, display type (default,
stacked, 100% stacked), the column index of the category and value
columns, etc.
| |
| formatChart | back to summary |
|---|---|
| public final void formatChart(OutputStream stream) Implements org. Doc from org. Like
| |
| formatChart | back to summary |
|---|---|
| public final void formatChart(OutputStream stream, ChartFormat format) Implements org. Doc from org. Like
| |
| formatChart | back to summary |
|---|---|
| public final void formatChart(Writer writer) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final String formatCSV() Implements org. Doc from org. Get a simple formatted representation of this result as CSV.
This is the same as calling | |
| formatCSV | back to summary |
|---|---|
| public final String formatCSV(boolean header) Implements org. Doc from org. Get a simple formatted representation of this result as CSV.
This is the same as calling | |
| formatCSV | back to summary |
|---|---|
| public final String formatCSV(char delimiter) Implements org. Doc from org. Get a simple formatted representation of this result as CSV.
This is the same as calling | |
| formatCSV | back to summary |
|---|---|
| public final String formatCSV(boolean header, char delimiter) Implements org. Doc from org. Get a simple formatted representation of this result as CSV.
This is the same as calling | |
| formatCSV | back to summary |
|---|---|
| public final String formatCSV(char delimiter, String nullString) Implements org. Doc from org. Get a simple formatted representation of this result as CSV.
This is the same as calling | |
| formatCSV | back to summary |
|---|---|
| public final String formatCSV(boolean header, char delimiter, String nullString) Implements org. Doc from org. Get a simple formatted representation of this result as CSV. | |
| formatCSV | back to summary |
|---|---|
| public final String formatCSV(CSVFormat format) Implements org. Doc from org. Get a simple formatted representation of this result as CSV. | |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(OutputStream stream) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(OutputStream stream, boolean header) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(OutputStream stream, char delimiter) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(OutputStream stream, boolean header, char delimiter) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(OutputStream stream, char delimiter, String nullString) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(OutputStream stream, boolean header, char delimiter, String nullString) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(OutputStream stream, CSVFormat format) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(Writer writer) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(Writer writer, boolean header) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(Writer writer, char delimiter) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(Writer writer, boolean header, char delimiter) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(Writer writer, char delimiter, String nullString) Implements org. Doc from org. Like
| |
| formatCSV | back to summary |
|---|---|
| public final void formatCSV(Writer writer, boolean header, char delimiter, String nullString) Implements org. Doc from org. Like
| |
| formatHTML | back to summary |
|---|---|
| public final String formatHTML() Implements org. Doc from org. Get a simple formatted representation of this result as HTML. The HTML code is formatted as follows:
| |
| formatHTML | back to summary |
|---|---|
| public final void formatHTML(OutputStream stream) Implements org. Doc from org. Like
| |
| formatInsert | back to summary |
|---|---|
| public final String formatInsert() Implements org. Doc from org. Get this result as a set of
This uses the the first record's
| |
| formatInsert | back to summary |
|---|---|
| public final void formatInsert(OutputStream stream) Implements org. Doc from org. Like
| |
| formatInsert | back to summary |
|---|---|
| public final String formatInsert(Table<?> table, Field<?>... f) Implements org. Doc from org. Deprecated as a consequence of Get this result as a set of
This explicitly specifies the table (and optionally the fields) to insert
into. If the
| |
| formatInsert | back to summary |
|---|---|
| public final void formatInsert(OutputStream stream, Table<?> table, Field<?>... f) Implements org. Doc from org. Deprecated as a consequence of Like
| |
| formatJSON | back to summary |
|---|---|
| public final String formatJSON() Implements org. Doc from org. Get a simple formatted representation of this result as a JSON array of array. The format is the following:
| |
| formatJSON | back to summary |
|---|---|
| public final String formatJSON(JSONFormat format) Implements org. Doc from org. Get a simple formatted representation of this result as a JSON data structure, according to the format. | |
| formatJSON | back to summary |
|---|---|
| public final void formatJSON(OutputStream stream) Implements org. Doc from org. Like
| |
| formatJSON | back to summary |
|---|---|
| public final void formatJSON(OutputStream stream, JSONFormat format) Implements org. Doc from org. Like
| |
| formatJSON | back to summary |
|---|---|
| public final void formatJSON(Writer writer) Implements org. Doc from org. Like
| |
| formatXML | back to summary |
|---|---|
| public final String formatXML() Implements org. Doc from org. Get this result formatted as XML.
| |
| formatXML | back to summary |
|---|---|
| public final String formatXML(XMLFormat format) Implements org. Doc from org. Get this result formatted as XML.
| |
| formatXML | back to summary |
|---|---|
| public final void formatXML(OutputStream stream) Implements org. Doc from org. Like
| |
| formatXML | back to summary |
|---|---|
| public final void formatXML(OutputStream stream, XMLFormat format) Implements org. Doc from org. Like
| |
| formatXML | back to summary |
|---|---|
| public final void formatXML(Writer writer) Implements org. Doc from org. Like
| |
| getAttachables | back to summary |
|---|---|
| pack-priv abstract List | |
| intoXML | back to summary |
|---|---|
| public final Document intoXML() Implements org. Doc from org. Get this result as XML.
| |
| intoXML | back to summary |
|---|---|
| public final <H extends ContentHandler> H intoXML(H handler) throws SAXException Implements org. Doc from org. Get this result as XML using a SAX
| |