Top Description Constructors Methods
org.jooq.impl

public Class DefaultFormattingProvider

extends Object
implements FormattingProvider
Class Inheritance
All Implemented Interfaces
org.jooq.FormattingProvider
Imports
org.jooq.CSVFormat, .ChartFormat, .FormattingProvider, .JSONFormat, .TXTFormat, .XMLFormat

A default implementation for the FormattingProvider.
Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ChartFormat
chartFormat()

Implements org.jooq.FormattingProvider.chartFormat.

The ChartFormat to use when calling Formattable#formatChart() and related methods, defaulting to ChartFormat#DEFAULT.
public CSVFormat
csvFormat()

Implements org.jooq.FormattingProvider.csvFormat.

The CSVFormat to use when calling Formattable#formatCSV() and related methods, defaulting to CSVFormat#DEFAULT.
public JSONFormat
jsonFormatForRecords()

Implements org.jooq.FormattingProvider.jsonFormatForRecords.

The JSONFormat to use when calling Formattable#formatJSON() and related methods on records, defaulting to JSONFormat#DEFAULT_FOR_RECORDS.
public JSONFormat
jsonFormatForResults()

Implements org.jooq.FormattingProvider.jsonFormatForResults.

The JSONFormat to use when calling Formattable#formatJSON() and related methods on results, defaulting to JSONFormat#DEFAULT_FOR_RESULTS.
public TXTFormat
txtFormat()

Implements org.jooq.FormattingProvider.txtFormat.

The TXTFormat to use when calling Formattable#format() and related methods, defaulting to TXTFormat#DEFAULT.
public int
width(String string)

Implements org.jooq.FormattingProvider.width.

The formatting display width in a monospaced font, which may diverge from String#length() e.g. if the string contains a Character#isIdeographic(int) character.
public XMLFormat
xmlFormatForRecords()

Implements org.jooq.FormattingProvider.xmlFormatForRecords.

The XMLFormat to use when calling Formattable#formatXML() and related methods on records, defaulting to XMLFormat#DEFAULT_FOR_RECORDS.
public XMLFormat
xmlFormatForResults()

Implements org.jooq.FormattingProvider.xmlFormatForResults.

The XMLFormat to use when calling Formattable#formatXML() and related methods on results, defaulting to XMLFormat#DEFAULT_FOR_RESULTS.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultFormattingProviderback to summary
public DefaultFormattingProvider()

Method Detail

chartFormatback to summary
public ChartFormat chartFormat()

Implements org.jooq.FormattingProvider.chartFormat.

Doc from org.jooq.FormattingProvider.chartFormat.

The ChartFormat to use when calling Formattable#formatChart() and related methods, defaulting to ChartFormat#DEFAULT.

Annotations
@Override
csvFormatback to summary
public CSVFormat csvFormat()

Implements org.jooq.FormattingProvider.csvFormat.

Doc from org.jooq.FormattingProvider.csvFormat.

The CSVFormat to use when calling Formattable#formatCSV() and related methods, defaulting to CSVFormat#DEFAULT.

Annotations
@Override
jsonFormatForRecordsback to summary
public JSONFormat jsonFormatForRecords()

Implements org.jooq.FormattingProvider.jsonFormatForRecords.

Doc from org.jooq.FormattingProvider.jsonFormatForRecords.

The JSONFormat to use when calling Formattable#formatJSON() and related methods on records, defaulting to JSONFormat#DEFAULT_FOR_RECORDS.

Annotations
@Override
jsonFormatForResultsback to summary
public JSONFormat jsonFormatForResults()

Implements org.jooq.FormattingProvider.jsonFormatForResults.

Doc from org.jooq.FormattingProvider.jsonFormatForResults.

The JSONFormat to use when calling Formattable#formatJSON() and related methods on results, defaulting to JSONFormat#DEFAULT_FOR_RESULTS.

Annotations
@Override
txtFormatback to summary
public TXTFormat txtFormat()

Implements org.jooq.FormattingProvider.txtFormat.

Doc from org.jooq.FormattingProvider.txtFormat.

The TXTFormat to use when calling Formattable#format() and related methods, defaulting to TXTFormat#DEFAULT.

Annotations
@Override
widthback to summary
public int width(String string)

Implements org.jooq.FormattingProvider.width.

Doc from org.jooq.FormattingProvider.width.

The formatting display width in a monospaced font, which may diverge from String#length() e.g. if the string contains a Character#isIdeographic(int) character.

Annotations
@Override
xmlFormatForRecordsback to summary
public XMLFormat xmlFormatForRecords()

Implements org.jooq.FormattingProvider.xmlFormatForRecords.

Doc from org.jooq.FormattingProvider.xmlFormatForRecords.

The XMLFormat to use when calling Formattable#formatXML() and related methods on records, defaulting to XMLFormat#DEFAULT_FOR_RECORDS.

Annotations
@Override
xmlFormatForResultsback to summary
public XMLFormat xmlFormatForResults()

Implements org.jooq.FormattingProvider.xmlFormatForResults.

Doc from org.jooq.FormattingProvider.xmlFormatForResults.

The XMLFormat to use when calling Formattable#formatXML() and related methods on results, defaulting to XMLFormat#DEFAULT_FOR_RESULTS.

Annotations
@Override