# Uses of Enum Class
com.norconex.commons.lang.bean.BeanMapper.Format

Packages that use BeanMapper.Format
Package
Description
com.norconex.commons.lang.bean
Bean related utilities.

- ## Uses of BeanMapper.Format in com.norconex.commons.lang.bean

  Methods in com.norconex.commons.lang.bean that return BeanMapper.Format
  Modifier and Type
  Method
  Description
  `static BeanMapper.Format`
  BeanMapper.Format.`fromContent(String content)`
  Resolve the format based on supplied content.
  `static BeanMapper.Format`
  BeanMapper.Format.`fromContent(String content, BeanMapper.Format defaultFormat)`
  Resolve the format based on supplied content.
  `static BeanMapper.Format`
  BeanMapper.Format.`fromPath(Path path)`
  Resolve the format based on the file extension for a given path.
  `static BeanMapper.Format`
  BeanMapper.Format.`fromPath(Path path, BeanMapper.Format defaultFormat)`
  Resolve the format based on the file extension for a given path.
  `static BeanMapper.Format`
  BeanMapper.Format.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static BeanMapper.Format[]`
  BeanMapper.Format.`values()`
  Returns an array containing the constants of this enum class, in the order they are declared.
  Methods in com.norconex.commons.lang.bean with parameters of type BeanMapper.Format
  Modifier and Type
  Method
  Description
  `void`
  BeanMapper.`assertWriteRead(@NonNull Object obj, BeanMapper.Format... formats)`
  Throws a `BeanException` if the given object is not equal to itself after writing it to specified formats and back.
  `static BeanMapper.Format`
  BeanMapper.Format.`fromContent(String content, BeanMapper.Format defaultFormat)`
  Resolve the format based on supplied content.
  `static BeanMapper.Format`
  BeanMapper.Format.`fromPath(Path path, BeanMapper.Format defaultFormat)`
  Resolve the format based on the file extension for a given path.
  `<T> T`
  BeanMapper.`read(@NonNull Class<T> type, @NonNull Reader reader, @NonNull BeanMapper.Format format)`
  Reads an XML, JSON, or Yaml source and map it into a new object of the given type.
  `<T> T`
  BeanMapper.`read(T object, @NonNull Reader reader, @NonNull BeanMapper.Format format)`
  Reads an XML, JSON, or Yaml source and map it into an existing object.
  `tools.jackson.databind.ObjectMapper`
  BeanMapper.`toObjectMapper(BeanMapper.Format format)`
  Gets a Jackson `ObjectMapper` for the given format.
  `void`
  BeanMapper.`write(@NonNull Object object, @NonNull Writer writer, @NonNull BeanMapper.Format format)`
  Write the given object as XML, JSON, or Yaml.