public class IOUtil extends Object
Constructor and Description |
---|
IOUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
readJson(File file)
Read json t.
|
static <T> T |
readKryo(File file)
Read kryo t.
|
static <T> void |
writeJson(T obj,
File file)
Write json.
|
static <T> void |
writeKryo(T obj,
OutputStream file)
Write kryo.
|
static void |
writeString(String obj,
OutputStream file)
Write string.
|
public static <T> void writeJson(T obj, File file)
T
- the type parameterobj
- the objfile
- the filepublic static <T> T readJson(File file)
T
- the type parameterfile
- the filepublic static <T> void writeKryo(T obj, OutputStream file)
T
- the type parameterobj
- the objfile
- the filepublic static void writeString(String obj, OutputStream file)
obj
- the objfile
- the filepublic static <T> T readKryo(File file)
T
- the type parameterfile
- the fileCopyright © 2019 SimiaCryptus Software. All rights reserved.