Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int read() throws IOException {
- synchronized (lock) {
- ensureOpen();
- for (;;) {
- if (nextChar >= nChars) {
- fill();
- if (nextChar >= nChars)
- return -1;
- }
- if (skipLF) {
- skipLF = false;
- if (cb[nextChar] == '\n') {
- nextChar++;
- continue;
- }
- }
- return cb[nextChar++];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement