openInput

abstract fun openInput(name: String, context: IOContext): IndexInput

Opens a stream for reading an existing file.

This method must throw either NoSuchFileException or FileNotFoundException if name points to a non-existing file.

Parameters

name

the name of an existing file.

Throws

IOException

in case of I/O error