Class FocessWriter


  • public abstract class FocessWriter
    extends Object
    This class is used to serialize FocessSerializable-Object.
    • Constructor Detail

      • FocessWriter

        public FocessWriter()
    • 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