Code example for PushbackReader

Methods: read, unread

0
      } catch (IOException ex) {
      } 
      return (c == '}') ? true : false;
    } 
    public void incr() {} 
  } 
     
  private void throwExceptionOnError(String tag) throws IOException {
    throw new IOException("Error deserializing "+tag);
  } 
     
  private String readField(String tag) throws IOException {
    try { 
      StringBuffer buf = new StringBuffer();
      while (true) { 
        char c = (char) stream.read();
        switch (c) {
        case ',': 
          return buf.toString();
        case '}': 
        case '\n':