@Test public void testDateParsing() throws Exception { Date date = (Date)parser.parseObject(new StringReader("new Date(2001,1,2)"), false); assertEquals(TimestampUtil.createDate(101, 1, 2), date); }
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);  }