java - Scanner vs. BufferedReader -


as far know, 2 common methods of reading character-based data file in java using scanner or bufferedreader. know bufferedreader read files efficiently using buffer avoid physical disk operations. questions are:

  • does scanner performs bufferedreader?
  • why choose scanner on bufferedreader or vice versa?

scanner used parsing tokens contents of stream while bufferedreader reads stream , not special parsing.

in fact can pass bufferedreader scanner source of characters parse.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -