public interface Formatter
Modifier and Type | Method and Description |
---|---|
void |
formatTo(java.lang.Object objectToFormat,
IncidentStream incidentStream)
Write the submitted object to format on the submitted incident stream
|
java.lang.String[] |
getSupportedTypeNames()
Return the supported type names.
|
boolean |
isSupported(java.lang.Class<?> clazz)
Check if the submitted type is supported
|
void formatTo(java.lang.Object objectToFormat, IncidentStream incidentStream) throws java.lang.IllegalArgumentException
objectToFormat
- incidentStream
- java.lang.IllegalArgumentException
java.lang.String[] getSupportedTypeNames()
somepackage
Package/subpackage wildcarding is not supported.
Implementors must avoid loading the classes corresponding the names.
boolean isSupported(java.lang.Class<?> clazz)
clazz
- the type to be checkedclazz
is supported, false otherwise