@Test public void testTimestampParsing() throws Exception { Timestamp ts = (Timestamp)parser.parseObject(new StringReader("new Date(2001,11,2,5,6,12,100)"), false); assertEquals(TimestampUtil.createTimestamp(101, 11, 2, 5, 6, 12, 100000000), ts); }
public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); }
GoogleJSONParser { public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); } }
GoogleJSONParser { public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); }  }
GoogleJSONParser { public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); }  Object parseObject(Reader r, boolean wrapped); void setCalendar(Calendar cal); }
GoogleJSONParser { public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); }  Object parseObject(Reader r, boolean wrapped); void setCalendar(Calendar cal);  }