()
| 67 | public int lenbuf = 0, ptrbuf = 0; |
| 68 | |
| 69 | private int readByte() |
| 70 | { |
| 71 | if(lenbuf == -1)throw new InputMismatchException(); |
| 72 | if(ptrbuf >= lenbuf){ |
| 73 | ptrbuf = 0; |
| 74 | try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); } |
| 75 | if(lenbuf <= 0)return -1; |
| 76 | } |
| 77 | return inbuf[ptrbuf++]; |
| 78 | } |
| 79 | |
| 80 | private boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); } |
| 81 | private int skip() { int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; } |