Interface SerializedIO

  • All Known Implementing Classes:
    FileSerializedIO

    public interface SerializedIO
    Interface SerializedIO is a simple interface for simple Input/Output. It defines an object that can be read from and write to (such as a File)
    • Method Summary

      Modifier and Type Method Description
      java.util.Optional<java.nio.ByteBuffer> read()
      Read the object
      void write​(java.nio.ByteBuffer buffer)
      Write content to an object
    • Method Detail

      • read

        java.util.Optional<java.nio.ByteBuffer> read()
        Read the object
        Returns:
        An optional ByteBuffer that contains the content of the object (or Empty if any error occurred)
      • write

        void write​(java.nio.ByteBuffer buffer)
        Write content to an object
        Parameters:
        buffer - the content to be written to the object111