DataFormatFactory

class DataFormatFactory

Simple factory that returns the DataFormat for the specified class.

The DataFormat is cached to return only one per class and avoid IllegalArgumentException: DataFormat 'xxx' already exists.

See also

<a href="shorturl.at/AFUV0">Issue JDK-8118672</a>

Functions

Link copied to clipboard
open fun getDataFormat(clazz: Class<out Any>): DataFormat
open fun getDataFormat(object: Any): DataFormat
Static DataFormat loader for the specified class.