java.lang.Object
org.jooq.impl.DefaultFormattingProvider
- All Implemented Interfaces:
FormattingProvider
A default implementation for the
FormattingProvider
.- Author:
- Lukas Eder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTheChartFormat
to use when callingFormattable.formatChart()
and related methods, defaulting toChartFormat.DEFAULT
.TheCSVFormat
to use when callingFormattable.formatCSV()
and related methods, defaulting toCSVFormat.DEFAULT
.TheJSONFormat
to use when callingFormattable.formatJSON()
and related methods on records, defaulting toJSONFormat.DEFAULT_FOR_RECORDS
.TheJSONFormat
to use when callingFormattable.formatJSON()
and related methods on results, defaulting toJSONFormat.DEFAULT_FOR_RESULTS
.TheTXTFormat
to use when callingFormattable.format()
and related methods, defaulting toTXTFormat.DEFAULT
.int
The formatting display width in a monospaced font, which may diverge fromString.length()
e.g.TheXMLFormat
to use when callingFormattable.formatXML()
and related methods on records, defaulting toXMLFormat.DEFAULT_FOR_RECORDS
.TheXMLFormat
to use when callingFormattable.formatXML()
and related methods on results, defaulting toXMLFormat.DEFAULT_FOR_RESULTS
.
-
Constructor Details
-
DefaultFormattingProvider
public DefaultFormattingProvider()
-
-
Method Details
-
txtFormat
Description copied from interface:FormattingProvider
TheTXTFormat
to use when callingFormattable.format()
and related methods, defaulting toTXTFormat.DEFAULT
.- Specified by:
txtFormat
in interfaceFormattingProvider
-
csvFormat
Description copied from interface:FormattingProvider
TheCSVFormat
to use when callingFormattable.formatCSV()
and related methods, defaulting toCSVFormat.DEFAULT
.- Specified by:
csvFormat
in interfaceFormattingProvider
-
jsonFormatForResults
Description copied from interface:FormattingProvider
TheJSONFormat
to use when callingFormattable.formatJSON()
and related methods on results, defaulting toJSONFormat.DEFAULT_FOR_RESULTS
.- Specified by:
jsonFormatForResults
in interfaceFormattingProvider
-
jsonFormatForRecords
Description copied from interface:FormattingProvider
TheJSONFormat
to use when callingFormattable.formatJSON()
and related methods on records, defaulting toJSONFormat.DEFAULT_FOR_RECORDS
.- Specified by:
jsonFormatForRecords
in interfaceFormattingProvider
-
xmlFormatForResults
Description copied from interface:FormattingProvider
TheXMLFormat
to use when callingFormattable.formatXML()
and related methods on results, defaulting toXMLFormat.DEFAULT_FOR_RESULTS
.- Specified by:
xmlFormatForResults
in interfaceFormattingProvider
-
xmlFormatForRecords
Description copied from interface:FormattingProvider
TheXMLFormat
to use when callingFormattable.formatXML()
and related methods on records, defaulting toXMLFormat.DEFAULT_FOR_RECORDS
.- Specified by:
xmlFormatForRecords
in interfaceFormattingProvider
-
chartFormat
Description copied from interface:FormattingProvider
TheChartFormat
to use when callingFormattable.formatChart()
and related methods, defaulting toChartFormat.DEFAULT
.- Specified by:
chartFormat
in interfaceFormattingProvider
-
width
Description copied from interface:FormattingProvider
The formatting display width in a monospaced font, which may diverge fromString.length()
e.g. if the string contains aCharacter.isIdeographic(int)
character.- Specified by:
width
in interfaceFormattingProvider
-