This repository has been archived on 2023-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
2021-06-08 01:59:21 +02:00
|
|
|
package it.cavallium.data.generator;
|
|
|
|
|
|
|
|
import java.io.DataInput;
|
|
|
|
import java.io.DataOutput;
|
|
|
|
import java.io.IOException;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
2021-09-22 18:26:29 +02:00
|
|
|
import org.jetbrains.annotations.Nullable;
|
2021-06-08 01:59:21 +02:00
|
|
|
|
|
|
|
public interface DataSerializer<T> {
|
|
|
|
|
2021-09-23 12:02:07 +02:00
|
|
|
void serialize(DataOutput dataOutput, @NotNull T data) throws IOException;
|
2021-06-08 01:59:21 +02:00
|
|
|
|
|
|
|
@NotNull T deserialize(DataInput dataInput) throws IOException;
|
|
|
|
}
|