MCPcopy Create free account
hub / github.com/ReadyTalk/avian / unread

Method unread

classpath/java/io/PushbackReader.java:52–61  ·  view source on GitHub ↗
(char[] b, int offset, int length)

Source from the content-addressed store, hash-verified

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);

Callers 2

skipSpaceMethod · 0.80
readStringTokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected