Interface InputFile

All Known Implementing Classes:
HadoopInputFile

public interface InputFile
Interface for reading a file and getting metadata about it.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the size of the file.
    Get the input stream to read the file.
    Get the path of the file.
  • Method Details

    • length

      long length() throws IOException
      Get the size of the file.
      Returns:
      the size of the file.
      Throws:
      IOException
    • path

      String path()
      Get the path of the file.
      Returns:
      the path of the file.
    • newStream

      SeekableInputStream newStream() throws IOException
      Get the input stream to read the file.
      Returns:
      the input stream to read the file. It is the responsibility of the caller to close the stream.
      Throws:
      IOException