Package net.starype.quiz.api.parser
Class FileSerializedIO
- java.lang.Object
-
- net.starype.quiz.api.parser.FileSerializedIO
-
- All Implemented Interfaces:
SerializedIO
public class FileSerializedIO extends java.lang.Object implements SerializedIO
-
-
Constructor Summary
Constructors Constructor Description FileSerializedIO(java.lang.String filepath, boolean compressed)
-
-
-
Method Detail
-
write
public void write(java.nio.ByteBuffer buffer)
Description copied from interface:SerializedIO
Write content to an object- Specified by:
write
in interfaceSerializedIO
- Parameters:
buffer
- the content to be written to the object111
-
read
public java.util.Optional<java.nio.ByteBuffer> read()
Description copied from interface:SerializedIO
Read the object- Specified by:
read
in interfaceSerializedIO
- Returns:
- An optional
ByteBuffer
that contains the content of the object (or Empty if any error occurred)
-
-