Learn Java Programming - BufferedReader Tutorial

Daniel Ross
Daniel Ross
16.4 هزار بار بازدید - 9 سال پیش - The BufferedReader class is used
The BufferedReader class is used to read text from a character stream. This tutorial builds on concepts from both my InputStreamReader Tutorial and my FileReader Tutorial, I highly recommend watching them first. This tutorial will demonstrate reading text from an input stream from the keyboard and will also demonstrate reading an input stream from a text file. The BufferedReader class has the same read() method that both InputStreamReader and FileReader use to read a single byte at a time. The BufferedReader class introduces a method named readLine() which will read an entire line of text which is a huge improvement. The BufferedReader class implements AutoClosable so we can use the try-with-resources type exception handling.
9 سال پیش در تاریخ 1394/09/22 منتشر شده است.
16,418 بـار بازدید شده
... بیشتر