インタフェース JsonMapper
- 既知の実装クラスのリスト:
JacksonMapper
public interface JsonMapper
-
メソッドの概要
修飾子とタイプメソッド説明<T> T
convertValue
(Object fromValue, Class<T> toValueType) Serializing the given value into JSON, and then binding JSON data into value of the given type.convertValue
(Object fromValue, Type toValueType) Serializing the given value into JSON, and then binding JSON data into value of the given type.From Object to JSON StringFrom Object to JSON Stringvoid
toJsonAndWrite
(Object obj, File out, boolean prettyPrint) Convert object to JSON and write it to File.void
toJsonAndWrite
(Object obj, OutputStream out, boolean prettyPrint) Convert object to JSON and write it to OutputStream.void
toJsonAndWrite
(Object obj, Writer out, boolean prettyPrint) Convert object to JSON and write it to Writer.toList
(InputStream in) toMap
(InputStream in) <T> T
From JSON byte[] to Object<T> T
From JSON file to object<T> T
toObject
(InputStream in, Class<T> clazz) From JSON InputStream to Object<T> T
From JSON reader to object<T> T
From JSON string to objectFrom JSON string to objectFrom JSON string to object
-
メソッドの詳細
-
convertValue
Serializing the given value into JSON, and then binding JSON data into value of the given type.- 型パラメータ:
T
-- パラメータ:
fromValue
-toValueType
-- 戻り値:
-
convertValue
Serializing the given value into JSON, and then binding JSON data into value of the given type.- パラメータ:
fromValue
-toValueType
-- 戻り値:
-
toJson
From Object to JSON String- パラメータ:
obj
-- 戻り値:
-
toJson
From Object to JSON String- パラメータ:
obj
-prettyPrint
-- 戻り値:
-
toJsonAndWrite
Convert object to JSON and write it to File.- パラメータ:
obj
-out
-prettyPrint
-
-
toJsonAndWrite
Convert object to JSON and write it to OutputStream.- パラメータ:
obj
-out
-prettyPrint
-
-
toJsonAndWrite
Convert object to JSON and write it to Writer.- パラメータ:
obj
-out
-prettyPrint
-
-
toList
-
toList
-
toList
-
toList
-
toMap
-
toMap
-
toMap
-
toMap
-
toObject
From JSON file to object- 型パラメータ:
T
-- パラメータ:
in
-clazz
-- 戻り値:
-
toObject
From JSON byte[] to Object- 型パラメータ:
T
-- パラメータ:
in
-clazz
-- 戻り値:
-
toObject
From JSON InputStream to Object- 型パラメータ:
T
-- パラメータ:
in
-clazz
-- 戻り値:
-
toObject
From JSON reader to object- 型パラメータ:
T
-- パラメータ:
in
-clazz
-- 戻り値:
-
toObject
From JSON string to object- 型パラメータ:
T
-- パラメータ:
json
-clazz
-- 戻り値:
-
toObject
From JSON string to object- パラメータ:
json
-hint
-- 戻り値:
-
toObject
From JSON string to object- パラメータ:
json
-hint
-- 戻り値:
-