(char[] b, int offset, int length)
| 50 | } |
| 51 | |
| 52 | public void unread(char[] b, int offset, int length) throws IOException { |
| 53 | if (length != 1) { |
| 54 | throw new IOException("Can only push back 1 char, not " + length); |
| 55 | } else if (hasSavedChar) { |
| 56 | throw new IOException("Already have a saved char"); |
| 57 | } else { |
| 58 | hasSavedChar = true; |
| 59 | savedChar = b[offset]; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | public void unread(char[] b) throws IOException { |
| 64 | unread(b, 0, b.length); |
no outgoing calls
no test coverage detected