-
- All Implemented Interfaces:
public final class DataFormatFactorySimple 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.
-
-
Method Summary
Modifier and Type Method Description static DataFormatgetDataFormat(Object object)Static DataFormat loader for the specified class. static DataFormatgetDataFormat(Class<out Object> clazz)Static DataFormat loader for the specified class. -
-
Method Detail
-
getDataFormat
static DataFormat getDataFormat(Object object)
Static DataFormat loader for the specified class.
- Parameters:
object- the object you want theDataFormatfor
-
getDataFormat
static DataFormat getDataFormat(Class<out Object> clazz)
Static DataFormat loader for the specified class.
- Parameters:
clazz- the class you want theDataFormatfor
-
-
-
-