Package com.norconex.commons.lang.convert

# Class ContentTypeConverter

java.lang.Object
com.norconex.commons.lang.convert.AbstractConverter
com.norconex.commons.lang.convert.ContentTypeConverter

All Implemented Interfaces:
  `Converter`

public class ContentTypeConverter extends AbstractConverter

`ContentType` converter.

Since:
  2.0.0

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `ContentTypeConverter.JsonDeserializer`
  JSON (Jackson) deserializer using this converter.
  `static class`
  `ContentTypeConverter.JsonSerializer`
  JSON (Jackson) serializer using this converter.
  `static class`
  `ContentTypeConverter.XmlAdapter`
  XML (JAXB) adapter using this converter.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContentTypeConverter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected String`
  `nullSafeToString(Object object)`
  `protected <T> T`
  `nullSafeToType(String value, Class<T> type)`

  ### Methods inherited from class com.norconex.commons.lang.convert.AbstractConverter

  `canEqual, equals, hashCode, toString, toString, toStringException, toStringException, toType, toTypeException, toTypeException, toUnsupportedTypeException`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface com.norconex.commons.lang.convert.Converter

  `toString, toType`

- ## Constructor Details

  - ### ContentTypeConverter

    public ContentTypeConverter()

- ## Method Details

  - ### nullSafeToString

    protected String nullSafeToString(Object object)
    Specified by:
      `nullSafeToString` in class `AbstractConverter`

  - ### nullSafeToType

    protected <T> T nullSafeToType(String value, Class<T> type)
    Specified by:
      `nullSafeToType` in class `AbstractConverter`