Package io.github.slimjar.util
Class Serialization
java.lang.Object
io.github.slimjar.util.Serialization
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T>readList(@NotNull DataInput in, @NotNull Serialization.Deserializer<@NotNull T> deserializer) static intstatic URLstatic <T> voidwriteList(@NotNull Collection<@NotNull T> list, @NotNull DataOutput out, @NotNull Serialization.Serializer<@NotNull T> writer) static voidwriteSignedVarInt(int value, @NotNull DataOutput out) static voidwriteURL(@NotNull URL url, @NotNull DataOutput out)
-
Method Details
-
writeURL
public static void writeURL(@NotNull @NotNull URL url, @NotNull @NotNull DataOutput out) throws IOException - Throws:
IOException
-
writeList
public static <T> void writeList(@NotNull @NotNull Collection<@NotNull T> list, @NotNull @NotNull DataOutput out, @NotNull @NotNull Serialization.Serializer<@NotNull T> writer) throws IOException - Throws:
IOException
-
writeSignedVarInt
public static void writeSignedVarInt(int value, @NotNull @NotNull DataOutput out) throws IOException - Throws:
IOException
-
readURL
- Throws:
IOException
-
readList
public static <T> List<T> readList(@NotNull @NotNull DataInput in, @NotNull @NotNull Serialization.Deserializer<@NotNull T> deserializer) throws IOException - Throws:
IOException
-
readSignedVarInt
- Throws:
IOException
-