Interface BinaryReader.InputStreamReaderFunction<T>

Type Parameters:
T - the type of object that will be returned
Enclosing class:
BinaryReader

public static interface BinaryReader.InputStreamReaderFunction<T>
Reads and returns an object from the current position in the specified input stream.

  • Method Summary

    Modifier and Type
    Method
    Description
    Reads from the specified input stream and returns a new object instance.
  • Method Details

    • get

      T get(InputStream is) throws IOException
      Reads from the specified input stream and returns a new object instance.

      Implementations of this method should not return null, instead they should throw an IOException.

      Parameters:
      is - an InputStream view of the BinaryReader
      Returns:
      new object
      Throws:
      IOException - if error reading