List of utility methods to do BufferedReader Create
BufferedReader | createBufferedReader(InputStream inputStream, String strCodepage) create Buffered Reader return createBufferedReader(inputStream, strCodepage, false, null);
|
BufferedReader | getBufferedReader(File file) Creates a buffered reader for a specified file. FileInputStream fis = new FileInputStream(file); InputStreamReader isr = new InputStreamReader(fis); return new BufferedReader(isr); |
BufferedReader | getBufferedReader(File file) get Buffered Reader if (file.getName().endsWith(".gz")) { return new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(file)))); } else { return new BufferedReader(new InputStreamReader(new FileInputStream(file))); |
BufferedReader | getBufferedReader(File file, String charset) get Buffered Reader FileInputStream is = new FileInputStream(file); InputStreamReader fileReader = new InputStreamReader(is, charset); return new BufferedReader(fileReader); |
BufferedReader | getBufferedReader(File file, String encoding) get Buffered Reader return new BufferedReader(new InputStreamReader(new FileInputStream(file), encoding)); |
BufferedReader | getBufferedReader(final File file) get Buffered Reader if (file == null) { throw new IllegalArgumentException("file can't be null"); if (file.exists() == false) { throw new IllegalArgumentException("file dosen't exist : " + file.getAbsolutePath()); try { InputStreamReader reader = new InputStreamReader(new FileInputStream(file)); ... |
BufferedReader | getBufferedReader(final InputStream inputstream) Method getBufferedReader return new BufferedReader(new InputStreamReader(inputstream, fileIOEncoding)); |
BufferedReader | getBufferedReader(InputStream inputStream) get Buffered Reader return new BufferedReader(new InputStreamReader(inputStream)); |
BufferedReader | getBufferedReader(InputStream inputStream, String charsetName) get Buffered Reader return new BufferedReader(new InputStreamReader(inputStream, charsetName)); |
BufferedReader | getBufferedReader(InputStream stream, String charset) get Buffered Reader InputStreamReader inputReader; if (charset == null) { inputReader = new InputStreamReader(stream); } else { inputReader = new InputStreamReader(stream, charset); return new BufferedReader(inputReader, DEFAULT_SIZE); |