Interface ElementReader<T>

Type Parameters:
T - The type of the elements to read.

public interface ElementReader<T>
An ElementReader specifies how to read an object from an InputStream.
Since:
1.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Reads the specified element from the InputStream.
  • Method Details

    • read

      T read(InputStream in) throws IOException
      Reads the specified element from the InputStream.
      Parameters:
      in - The input stream. Must not be null.
      Returns:
      The read element. The implementation decides if the element may be null.
      Throws:
      IOException - If an I/O error occurs.