Package mindustry.io
Class JsonIO
java.lang.Object
mindustry.io.JsonIO
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static <T> T
copy
(T object) static <T> T
copy
(T object, T dest) static String
static <T> T
static <T> T
static <T> T
readBytes
(Class<T> type, Class<?> elementType, DataInputStream input) static String
static void
writeBytes
(Object value, Class<?> elementType, DataOutputStream output)
-
Field Details
-
json
public static final arc.util.serialization.Json json
-
-
Constructor Details
-
JsonIO
public JsonIO()
-
-
Method Details
-
writeBytes
-
readBytes
public static <T> T readBytes(Class<T> type, Class<?> elementType, DataInputStream input) throws IOException - Throws:
IOException
-
write
-
copy
public static <T> T copy(T object, T dest) -
copy
public static <T> T copy(T object) -
read
-
read
-
print
-
classTag
-