Interface SimpleMapper.Type<T>

Enclosing interface:
SimpleMapper

public static interface SimpleMapper.Type<T>
Reading and writing with all options such and InputStream, Reader etc.
  • Method Details

    • list

      Create a list type for this type.
    • map

      Create a map type with string keys and this type as the value type.
    • fromJson

      T fromJson(String content)
      Read the return the value from the json content.
    • fromJson

      T fromJson(JsonReader reader)
      Read the return the value from the reader.
    • fromJson

      T fromJson(byte[] content)
      Read the return the value from the json content.
    • fromJson

      T fromJson(Reader reader)
      Read the return the value from the reader.
    • fromJson

      T fromJson(InputStream inputStream)
      Read the return the value from the inputStream.
    • toJson

      String toJson(T value)
      Return as json string.
    • toJsonPretty

      String toJsonPretty(T value)
      Return as json string in pretty format.
    • toJsonBytes

      byte[] toJsonBytes(T value)
      Return the value as json content in bytes form.
    • toJson

      void toJson(T value, JsonWriter writer)
      Write to the given writer.
    • toJson

      void toJson(T value, Writer writer)
      Write to the given writer.
    • toJson

      void toJson(T value, OutputStream outputStream)
      Write to the given outputStream.