Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public int read() throws IOException {
  2. synchronized (lock) {
  3. ensureOpen();
  4. for (;;) {
  5. if (nextChar >= nChars) {
  6. fill();
  7. if (nextChar >= nChars)
  8. return -1;
  9. }
  10. if (skipLF) {
  11. skipLF = false;
  12. if (cb[nextChar] == '\n') {
  13. nextChar++;
  14. continue;
  15. }
  16. }
  17. return cb[nextChar++];
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement