1 | private static final int BUFFER_INCREMENT = 1024;↵ | | 1 | private static final int BUFFER_INCREMENT = 1024;↵
|
2 | private static final int UNKNOWN = Integer.MAX_VALUE; // value for end↵ | | 2 | private static final int UNKNOWN = Integer.MAX_VALUE; // value for end↵
|
3 | ↵ | | 3 | ↵
|
4 | private BufferedInputStream br;↵ | | 4 | private final BufferedReader br;↵
|
|
5 | // so that we don't try to reset() right away↵ | | 5 | // so that we don't try to reset() right away↵
|
6 | private int index = -1;↵ | | 6 | private int index = -1;↵
|
|
7 | private int bufsize = BUFFER_INCREMENT;↵ | | 7 | private int bufsize = BUFFER_INCREMENT;↵
|
|
8 | private int end = UNKNOWN;↵ | | 8 | private int end = UNKNOWN;↵
|
|
9 | private char cached = OUT_OF_BOUNDS;↵ | | 9 | private char cached = OUT_OF_BOUNDS;↵
|
|
10 | // Big enough for a \r\n pair↵ | | 10 | // Big enough for a \r\n pair↵
|
11 | // lookBehind[0] = most recent↵ | | 11 | // lookBehind[0] = most recent↵
|
12 | // lookBehind[1] = second most recent↵ | | 12 | // lookBehind[1] = second most recent↵
|
13 | private char[] lookBehind = new char[] { OUT_OF_BOUNDS, OUT_OF_BOUNDS }; | | 13 | private char[] lookBehind = new char[] { OUT_OF_BOUNDS, OUT_OF_BOUNDS };
|