List of utility methods to do DataInputStream Create
DataInputStream | getInputStream(String file) Return a buffered data input stream for file. return getInputStream(new File(file)); |
DataInputStream | getInputStream(String path) Opens an input stream for the specified path. return new DataInputStream(new FileInputStream(path)); |
DataInputStream | getReaderFor(File file) get Reader For DataInputStream data; if (file.length() > Integer.MAX_VALUE) data = new DataInputStream(new BufferedInputStream(new FileInputStream(file))); else { InputStream stream = new BufferedInputStream(new FileInputStream(file), 256); byte[] bytes = new byte[(int) file.length()]; stream.read(bytes, 0, bytes.length); stream.close(); ... |