Package top.focess.qq.api.serialize
Class FocessWriter
- java.lang.Object
-
- top.focess.qq.api.serialize.FocessWriter
-
public abstract class FocessWriter extends Object
This class is used to serialize FocessSerializable-Object.
-
-
Constructor Summary
Constructors Constructor Description FocessWriter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FocessWriternewFocessWriter(OutputStream outputStream)New a FocessWriter with given output streamabstract voidwrite(Object o)Write object by this writer
-
-
-
Method Detail
-
newFocessWriter
@NotNull @Contract("_ -> new") public static FocessWriter newFocessWriter(OutputStream outputStream)New a FocessWriter with given output stream- Parameters:
outputStream- the given output stream- Returns:
- the FocessWriter with given output stream
- Throws:
IllegalStateException- if the given output stream is not valid
-
write
public abstract void write(Object o)
Write object by this writer- Parameters:
o- the object need to be written- Throws:
NotFocessSerializableException- if the object is not FocessSerializable
-
-