パッケージ nlp4j.util
クラス JsonUtils
- java.lang.Object
-
- nlp4j.util.JsonUtils
-
public class JsonUtils extends Object
- 導入されたバージョン:
- 1.2.1.0
- 作成者:
- Hiroki Oya
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 JsonUtils()
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static String
prettyPrint(com.google.gson.JsonElement json)
static String
prettyPrint(com.google.gson.JsonObject json)
static String
prettyPrint(String json)
static void
write(File outFile, String jsonData)
-
-
-
メソッドの詳細
-
write
public static void write(File outFile, String jsonData) throws IOException
- パラメータ:
outFile
- the file to writejsonData
- the JSON content write to the file- 例外:
IOException
- in case of an I/O error
-
prettyPrint
public static String prettyPrint(com.google.gson.JsonObject json)
- パラメータ:
json
- of JsonObject- 戻り値:
- String in Pretty Print
-
prettyPrint
public static String prettyPrint(com.google.gson.JsonElement json)
- パラメータ:
json
- of JsonElement- 戻り値:
- String in Pretty Print
- 導入されたバージョン:
- 1.3.1.0
-
-