Class MinimalPrettyPrinter

  • All Implemented Interfaces:
    PrettyPrinter

    public class MinimalPrettyPrinter
    extends Object
    implements PrettyPrinter
    PrettyPrinter implementation that adds no indentation, just implements everything necessary for value output to work as expected, and provide simpler extension points to allow for creating simple custom implementations that add specific decoration or overrides. Since behavior then is very similar to using no pretty printer at all, usually sub-classes are used.

    Beyond purely minimal implementation, there is limited amount of configurability which may be useful for actual use: for example, it is possible to redefine separator used between root-level values (default is single space; can be changed to line-feed).

    Since:
    1.6