Interface ByteBufferMarshaller

    • Field Detail

      • LOGGER

        static final org.jboss.logging.Logger LOGGER
    • Method Detail

      • readFrom

        Object readFrom​(InputStream input)
                 throws IOException
        Reads an object from the specified input stream.
        Parameters:
        input - an input stream
        Returns:
        the unmarshalled object
        Throws:
        IOException - if the object could not be read
      • writeTo

        void writeTo​(OutputStream output,
                     Object object)
              throws IOException
        Writes the specified object to the specified output stream.
        Parameters:
        output - an output stream
        object - an object to marshal
        Throws:
        IOException - if the object could not be written
      • size

        default OptionalInt size​(Object object)
        Returns the marshalled size of the specified object.
        Parameters:
        buffer - a byte buffer
        Returns:
        the marshalled size of the specified object.