. FileInputStream InputStreamReader, UTF-8. BufferedReader, readLine(). . .
- , , .
The approach above is a bit inefficient, but fast enough for most applications. If you have real performance requirements, you need something that is repeated through characters. I wrote one a few years ago that uses a state machine that worked fine.
source
share