Module concord_core

Interface MessageReader<T extends Message>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MessageReader<T extends Message>
  • Method Summary

    Modifier and Type
    Method
    Description
    Reads all of this message's properties from the given input stream.
  • Method Details

    • read

      Reads all of this message's properties from the given input stream.

      The single byte type identifier has already been read.

      Parameters:
      in - The input stream to read from.
      Returns:
      The message that was read.
      Throws:
      IOException - If an error occurs while reading.