Code example for PushbackReader

Methods: read, unread

0
      if (c != '\n' && c != '\r') {
        throw new IOException("Error deserializing record.");
      } else { 
        return; 
      } 
    } 
         
    if (c != '}') {
      throw new IOException("Error deserializing "+tag);
    } 
    c = (char) stream.read();
    if (c != ',') {
      stream.unread(c);
    } 
         
    return; 
  } 
     
  public Index startVector(String tag) throws IOException {
    char c1 = (char) stream.read();
    char c2 = (char) stream.read();
    if (c1 != 'v' || c2 != '{') {
      throw new IOException("Error deserializing "+tag);
    } 
    return new CsvIndex();