Top "Bufferedreader" questions

Java class that reads text from a character-input stream, buffering characters so as to provide for an efficient reading of characters, arrays, and lines.

Java: reading strings from a random access file with buffered input

I've never had close experiences with Java IO API before and I'm really frustrated now. I find it hard to …

java nio bufferedreader fileinputstream random-access
Sockets: BufferedReader readLine() blocks

I am using BufferedReader.readLine() method to read a response from a remote server (which is written in C and …

java sockets bufferedreader java-io
Best way to use BufferedReader in Kotlin

So I've just started using Kotlin for Android, and converted my Android Java codes into Kotlin. In one of the …

java bufferedreader kotlin
BufferedReader default buffer size?

According to the documentation, BufferedReader(Reader) uses a default buffer size, while the second constructor, BufferedReader(Reader, int) allows the …

java buffer bufferedreader
How do I close a file after catching an IOException in java?

All, I am trying to ensure that a file I have open with BufferedReader is closed when I catch an …

java exception-handling try-catch ioexception bufferedreader
Difference between BufferedReader and BufferedInputStream

What are the differences between BufferedReader , BufferedInputStream and Scanner in java? BufferedReader reads the text and BufferedInputStream reads byte. Is …

java io java.util.scanner bufferedreader
Java: How read a File line by line by ignoring "\n"

I'm trying to read a tab separated text file line per line. The lines are separated by using carriage return ("\…

java bufferedreader text-parsing carriage-return linefeed
How to read N amount of lines from a file?

I am trying to practice reading text from a file in java. I am little stuck on how I can …

java for-loop arraylist bufferedreader fileinputstream
BufferedReader input attempt from System.in throwing exceptions

I am trying to read a from the input using BufferedReader. It works the first time but the second time …

java input bufferedreader inputstreamreader
What happens to a BufferedReader that doesn't get closed within a callable.call?

I have three questions. To explain, I was reviewing someone's code, and noticed BufferedReaders sometimes aren't being closed. Usually, Eclipse …

java eclipse inner-classes bufferedreader callable