# Class: com.pnfsoftware.jeb.util.format.PrettyPrinter

The pretty\-printer object does its best to provide a human\-readable representation of any object. Elements of arrays, collections, and maps are rendered individually. For non\-basic types, `toString` is called, unless forbidden \(see \`allowCallToString\`\) or customized \(see [#formatObject(Object)](#formatObject(Object))\). For maps, the key\-value pairs are rendered one per line line. Indenting uses 2 white\-space characters.

## Constructor: PrettyPrinter
- parameter: `allowUnsafeCalls`, type: `boolean`
- parameter: `indentStringLength`, type: `int`


## Constructor: PrettyPrinter
- parameter: `allowUnsafeCalls`, type: `boolean`


## Constructor: PrettyPrinter


## Static Field: DEFAULT_MAX_ARRAY_ITEM_COUNT
Type: `int`

Constant value: `40`

## Static Field: DEFAULT_MAX_COLLECTION_ITEM_COUNT
Type: `int`

Constant value: `40`

## Static Field: DEFAULT_MAX_MAP_ITEM_COUNT
Type: `int`

Constant value: `40`

## Static Field: DEFAULT_MAX_STRING_LENGTH
Type: `int`

Constant value: `200`

## Method: format
- parameter: `o`, type: `java.lang.Object`
- return type: `java.lang.String`


## Protected Method: formatObject
- parameter: `o`, type: `java.lang.Object`
- return type: `java.lang.String`

Description: Subclasses can provide custom formatting for the given object.
parameter: o: 
return: a string or null to let the pretty\-printer proceed with its own implementation

## Method: setMaxArrayLength
- parameter: `max`, type: `int`


## Method: setMaxCollectionLength
- parameter: `max`, type: `int`


## Method: setMaxMapLength
- parameter: `max`, type: `int`


## Method: setMaxStringLength
- parameter: `max`, type: `int`


