/** * Construct a FieldInfos object using the directory and the name of the file * IndexInput * @param d The directory to open the IndexInput from * @param name The name of the file to open the IndexInput from in the Directory * @throws IOException */ FieldInfos(Directory d, String name) throws IOException { IndexInput input = d.openInput(name); try { read(input); } finally { input.close(); } }
/** * Construct a FieldInfos object using the directory and the name of the file * IndexInput * @param d The directory to open the IndexInput from * @param name The name of the file to open the IndexInput from in the Directory * @throws IOException */ FieldInfos(Directory d, String name) throws IOException { IndexInput input = d.openInput(name); try { read(input); } finally { input.close(); } }
/** * Construct a FieldInfos object using the directory and the name of the file * InputStream * @param d The directory to open the InputStream from * @param name The name of the file to open the InputStream from in the Directory * @throws IOException * * @see #read */ FieldInfos(Directory d, String name) throws IOException { InputStream input = d.openFile(name); try { read(input); } finally { input.close(); } }