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 TypeMethodDescriptionread(InputStream in) Reads the specified element from theInputStream.
-
Method Details
-
read
Reads the specified element from theInputStream.- Parameters:
in- The input stream. Must not benull.- Returns:
- The read element. The implementation decides if the element may be
null. - Throws:
IOException- If an I/O error occurs.
-