/** Constructs an NIOInputStream around the given file. */ public NIOInputStream(String filename) throws IOException { this.filename = filename; file = new File(filename); raf = new FileHandle(file, "r"); }
/** * Constructs an NIOInputStream around the given file. * * @param filename the path to a readable file on disk * @throws IOException if the path is invalid or unreadable */ public NIOInputStream(String filename) throws IOException { this.filename = filename; file = new File(filename); raf = new FileHandle(file, "r"); }