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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - VueJS2 and the Window Object - how to use? -