@Override public IndexInput openInput(String name,IOContext context) throws IOException {
  ensureOpen();
  ensureCanRead(name);
  Path path=directory.resolve(name);
  SeekableByteChannel channel=Files.newByteChannel(path,StandardOpenOption.READ);
  return new SimpleFSIndexInput("SimpleFSIndexInput(path=\"" + path + "\")",channel,context);
}

@ Override public IndexInput openInput ( String name , IOContext context ) throws IOException { ensureOpen ( ) ; ensureCanRead ( name ) ; Path path = directory . resolve ( name ) ; SeekableByteChannel channel = Files . newByteChannel ( path , StandardOpenOption . READ ) ; return new SimpleFSIndexInput ( "SimpleFSIndexInput(path=\"" + path + "\")" , channel , context ) ; }
creates an indexinput for the file with the given name .
