Fastest way of reading relatively huge byte-files in Java

后端 未结 3 1294
抹茶落季
抹茶落季 2020-11-30 22:59

what\'s the probably fastest way of reading relatively huge files with Java\'s I/O-methods? My current solution uses the BufferedInputStream saving to an byte-a

3条回答
  •  日久生厌
    2020-11-30 23:26

    Have a look at Java NIO (Non-Blocking Input/Output) API. Also, this question might prove being useful.

    I don't have much experience with IO, but I've heard that NIO is much more efficient way of handling large sets of data.

提交回复
热议问题