Class FocessReader


  • public abstract class FocessReader
    extends Object
    This class is used to deserialize FocessSerializable-Object.
    • Constructor Detail

      • FocessReader

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