Package net.starype.quiz.api.parser
Interface SerializedIO
-
- All Known Implementing Classes:
FileSerializedIO
public interface SerializedIO
InterfaceSerializedIO
is a simple interface for simple Input/Output. It defines an object that can be read from and write to (such as a File)
-
-
Method Detail
-
read
java.util.Optional<java.nio.ByteBuffer> read()
Read the object- Returns:
- An optional
ByteBuffer
that contains the content of the object (or Empty if any error occurred)
-
write
void write(java.nio.ByteBuffer buffer)
Write content to an object- Parameters:
buffer
- the content to be written to the object111
-
-