Package top.focess.qq.api.serialize
Class FocessReader
- java.lang.Object
-
- top.focess.qq.api.serialize.FocessReader
-
public abstract class FocessReader extends Object
This class is used to deserialize FocessSerializable-Object.
-
-
Constructor Summary
Constructors Constructor Description FocessReader()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FocessReadernewFocessReader(InputStream inputStream)New a FocessReader with given input streamabstract Objectread()Read object from the reader
-
-
-
Method Detail
-
newFocessReader
@NotNull @Contract("_ -> new") public static FocessReader newFocessReader(InputStream inputStream)New a FocessReader with given input stream- Parameters:
inputStream- the given input stream- Returns:
- the FocessReader with given input stream
- Throws:
IllegalStateException- if the input stream is not valid
-
read
public abstract Object read()
Read object from the reader- Returns:
- the object read from the reader
- Throws:
SerializationParseException- if the binary-data is not correct
-
-