Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 25 of 119) sorted by relevance

12345

/libcore/luni/src/main/java/javax/xml/parsers/
DSAXParser.java124 public void parse(InputStream is, HandlerBase hb) in parse() method in SAXParser
131 this.parse(input, hb); in parse()
152 public void parse( in parse() method in SAXParser
163 this.parse(input, hb); in parse()
180 public void parse(InputStream is, DefaultHandler dh) in parse() method in SAXParser
187 this.parse(input, dh); in parse()
205 public void parse( in parse() method in SAXParser
216 this.parse(input, dh); in parse()
235 public void parse(String uri, HandlerBase hb) in parse() method in SAXParser
242 this.parse(input, hb); in parse()
[all …]
DDocumentBuilder.java100 public Document parse(InputStream is) in parse() method in DocumentBuilder
107 return parse(in); in parse()
124 public Document parse(InputStream is, String systemId) in parse() method in DocumentBuilder
132 return parse(in); in parse()
148 public Document parse(String uri) in parse() method in DocumentBuilder
155 return parse(in); in parse()
171 public Document parse(File f) throws SAXException, IOException { in parse() method in DocumentBuilder
183 return parse(in); in parse()
199 public abstract Document parse(InputSource is) in parse() method in DocumentBuilder
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java390 HttpCookie cookie1 = HttpCookie.parse("Set-Cookie:name=value;max-age=2;").get(0); in test_HasExpiredBug25682357()
391 HttpCookie cookie2 = HttpCookie.parse("Set-Cookie:name=value;max-age=100;").get(0); in test_HasExpiredBug25682357()
418 HttpCookie pastExpiryCookie = HttpCookie.parse(pastExpiryCookieHeader).get(0); in test_HasExpiredBug25682357_2()
424 HttpCookie futureExpiryCookie = HttpCookie.parse(futureExpiryCookieHeader).get(0); in test_HasExpiredBug25682357_2()
544 HttpCookie.parse(null); in test_Parse_exception()
608 .parse("Set-Cookie:name=test;expires=Thu, 30-Oct-2008 19:14:07 GMT;"); in test_Parse_locale()
614 .parse("Set-Cookie:name=test;expires=Sun, 30-Oct-2005 19:14:07 GMT;"); in test_Parse_locale()
620 .parse("Set-Cookie:name=test;max-age=1234;expires=Sun, 30-Oct-2005 19:14:07 GMT;"); in test_Parse_locale()
628 .parse("Set-Cookie:name=test;max-age=-12345;"); in test_Parse_locale()
635 list = HttpCookie.parse("Set-Cookie2:name=test;max-age=1000"); in test_Parse_locale()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatTestICU.java77 assertEquals(123, format.parse("xxxxxxxxx123.0").intValue()); in test_paddingPattern()
86 assertEquals(2, format.parse("\u00e72 o'clock").intValue()); in test_paddingPattern()
87 assertEquals(12, format.parse("12 o'clock").intValue()); in test_paddingPattern()
111 assertEquals(100, format.parse("1E+2").intValue()); in test_positiveExponentSign()
112 assertEquals(0.01f, format.parse("1E-2").floatValue()); in test_positiveExponentSign()
116 assertEquals(100, format.parse("1E2 m/s").intValue()); in test_positiveExponentSign()
120 assertEquals(0.00123f, format.parse("12.3E-4").floatValue()); in test_positiveExponentSign()
124 assertEquals(12345, format.parse("12.345E3").intValue()); in test_positiveExponentSign()
139 assertEquals(1234567890, format.parse("123,456,7890").intValue()); in test_secondaryGroupingSize()
142 assertEquals(1234567890, format.parse("123,456,7890").intValue()); in test_secondaryGroupingSize()
[all …]
DSimpleDateFormatTest.java214 Date d = sdf.parse(value, pp); in assertCannotParse()
221 Date d = sdf.parse(value, pp); in parseDate()
287 sdf.parse("2010-12-03 00:00:00 -0800"); in testTimeZoneFormatting()
298 Date date = sdf.parse("2010-07-08 02:44:48"); in testTimeZoneFormatting()
310 calendar.setTime(format.parse("2011-06-21T10:00 Pacific Standard Time")); // 18:00 GMT-8 in testDstZoneNameWithNonDstTimestamp()
318 calendar.setTime(format.parse("2010-12-21T10:00 Pacific Daylight Time")); // 17:00 GMT-7 in testNonDstZoneNameWithDstTimestamp()
327 calendar.setTime(format.parse("2011-06-21T20:00 Lord Howe Daylight Time")); // 9:00 GMT+11 in testDstZoneWithNonDstTimestampForNonHourDstZone()
335 calendar.setTime(format.parse("2010-12-21T19:30 Lord Howe Standard Time")); //9:00 GMT+10:30 in testNonDstZoneWithDstTimestampForNonHourDstZone()
350 new SimpleDateFormat("z", Locale.FRANCE).parse("UTC"); in testParseTimezoneOnly()
351 new SimpleDateFormat("z", Locale.US).parse("UTC"); in testParseTimezoneOnly()
[all …]
DOldDateFormatTest.java40 public Date parse(String source, ParsePosition pos) { in parse() method in OldDateFormatTest.MockDateFormat
216 format.parse("not a Date"); in test_parseLString()
225 Date date = format.parse(format.format(current).toString()); in test_parseLString()
238 format.parse("27/08/1998"); in test_parseLString()
244 format.parse("30/30/908 4:50, PDT"); in test_parseLString()
250 format.parse("837039928046"); in test_parseLString()
258 Date date = format.parse(format.format(current).toString()); in test_parseLString()
271 format.parse("Jan 16 1970"); in test_parseLString()
278 format.parse("27/08/1998"); in test_parseLString()
286 Date date = format.parse(format.format(current).toString()); in test_parseLString()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DDocumentBuilderTest.java95 public Document parse(InputSource is) throws SAXException, IOException { in parse() method in DocumentBuilderTest.MockDocumentBuilder
229 Document d = db.parse(f); in testGetBaseURI()
245 Document d = db.parse(f); in test_parseLjava_io_File()
262 db.parse((File)null); in test_parseLjava_io_File()
274 db.parse(new File("_")); in test_parseLjava_io_File()
285 db.parse(f); in test_parseLjava_io_File()
305 Document d = db.parse(is); in test_parseLjava_io_InputStream()
322 db.parse((InputStream)null); in test_parseLjava_io_InputStream()
334 db.parse(new FileInputStream("_")); in test_parseLjava_io_InputStream()
345 db.parse(is); in test_parseLjava_io_InputStream()
[all …]
DSAXParserTest.java315 parser.parse(list_wf[i], dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
322 parser.parse(list_nwf[i], dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
331 parser.parse((File) null, dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
338 parser.parse(list_wf[0], (DefaultHandler) null); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
350 parser.parse(list_wf[i], dh); in testParseFileHandlerBase()
363 parser.parse(list_nwf[i], dh); in testParseFileHandlerBase()
376 parser.parse((File) null, dh); in testParseFileHandlerBase()
387 parser.parse(list_wf[0], (HandlerBase) null); in testParseFileHandlerBase()
406 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
414 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
[all …]
DDocumentBuilderFactoryTest.java312 db.parse(getClass().getResourceAsStream("/simple.xml")); in test_newDocumentBuilder()
384 Document document = parser.parse(getClass().getResourceAsStream( in test_setCoalescingZ()
412 Document document = parser.parse(getClass().getResourceAsStream( in test_setCoalescingZ()
447 Document document = parser.parse(getClass().getResourceAsStream( in test_setExpandEntityReferencesZ()
470 Document document = parser.parse(getClass().getResourceAsStream( in test_setExpandEntityReferencesZ()
545 Document document = parser.parse(getClass().getResourceAsStream( in test_setIgnoringCommentsZ()
568 Document document = parser.parse(getClass().getResourceAsStream( in test_setIgnoringCommentsZ()
594 Document document = parser.parse(getClass().getResourceAsStream( in test_setIgnoringElementContentWhitespaceZ()
613 Document document = parser.parse(getClass().getResourceAsStream( in test_setIgnoringElementContentWhitespaceZ()
637 Document document = parser.parse(getClass().getResourceAsStream( in test_setNamespaceAwareZ()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DParseBenchmark.java100 parser.parse(text); in timeParse()
122 void parse(String data) throws Exception; in parse() method
126 @Override public void parse(String data) throws Exception { in parse() method in ParseBenchmark.AndroidStreamParser
177 @Override public void parse(String data) throws Exception { in parse() method in ParseBenchmark.OrgJsonParser
189 @Override public void parse(String data) throws Exception { in parse() method in ParseBenchmark.GeneralXmlPullParser
201 @Override public void parse(String data) throws Exception { in parse() method in ParseBenchmark.XmlDomParser
203 .parse(new InputSource(new StringReader(data))); in parse()
208 @Override public void parse(String data) throws Exception { in parse() method in ParseBenchmark.XmlSaxParser
209 SAXParserFactory.newInstance().newSAXParser().parse( in parse()
/libcore/luni/src/test/java/libcore/xml/
DSaxTest.java39 parse(false, false, "<foo bar=\"baz\"/>", new DefaultHandler() { in testNoPrefixesNoNamespaces()
52 parse(false, false, "<a:foo a:bar=\"baz\"/>", new DefaultHandler() { in testNoPrefixesNoNamespaces()
67 parse(false, true, "<foo bar=\"baz\"/>", new DefaultHandler() { in testNoPrefixesYesNamespaces()
80 parse(false, true, "<a:foo a:bar=\"baz\" xmlns:a=\"http://quux\"/>", new DefaultHandler() { in testNoPrefixesYesNamespaces()
99 parse(true, true, "<foo bar=\"baz\"/>", new DefaultHandler() { in testYesPrefixesYesNamespaces()
112 parse(true, true, "<a:foo a:bar=\"baz\" xmlns:a=\"http://quux\"/>", new DefaultHandler() { in testYesPrefixesYesNamespaces()
130 parse(true, false, "<foo bar=\"baz\"/>", new DefaultHandler() { in testYesPrefixesNoNamespaces()
143 parse(true, false, "<a:foo a:bar=\"baz\"/>", new DefaultHandler() { in testYesPrefixesNoNamespaces()
200 reader.parse(new InputSource(new StringReader(xml))); in testDisableExternalEntities()
203 private void parse(boolean prefixes, boolean namespaces, String xml, in parse() method in SaxTest
[all …]
DExpatSaxParserTest.java58 parse(xml.toString(), new DefaultHandler()); in testGlobalReferenceTableOverflow()
72 parse(SNIPPET, contentHandler); in testExceptions()
86 parse(SNIPPET, contentHandler); in testExceptions()
99 parse(SNIPPET, contentHandler); in testExceptions()
108 parse(SNIPPET, handler); in testSax()
113 parse(new StringReader(SNIPPET), handler); in testSax()
118 parse(new ByteArrayInputStream(SNIPPET.getBytes()), in testSax()
178 parse(XML, handler); in testNamespaces()
367 reader.parse(new InputSource(in)); in runDtdTest()
468 reader.parse(new InputSource(in)); in testCdata()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatReader.java249 public void parse(InputSource input) throws IOException, SAXException { in parse() method in ExpatReader
267 parse(reader, input.getPublicId(), input.getSystemId()); in parse()
279 parse(in, encoding, input.getPublicId(), input.getSystemId()); in parse()
294 parse(in, encoding, input.getPublicId(), systemId); in parse()
300 private void parse(Reader in, String publicId, String systemId) in parse() method in ExpatReader
312 private void parse(InputStream in, String charsetName, String publicId, String systemId) in parse() method in ExpatReader
319 public void parse(String systemId) throws IOException, SAXException { in parse() method in ExpatReader
320 parse(new InputSource(systemId)); in parse()
/libcore/luni/src/main/java/libcore/net/http/
DHttpDate.java71 public static Date parse(String value) { in parse() method in HttpDate
73 return STANDARD_DATE_FORMAT.get().parse(value); in parse()
78 return new SimpleDateFormat(formatString, Locale.US).parse(value); in parse()
/libcore/luni/src/test/java/libcore/java/util/
DDateTest.java74 Date.parse("Wed, 06 Jan 2016 11:55:59 GMT+05:00"), in test_parse_timezones()
75 Date.parse("Wed, 06 Jan 2016 11:55:59 GMT+0500")); in test_parse_timezones()
78 Date.parse("Wed, 06 Jan 2016 11:55:59 GMT+05:00"), in test_parse_timezones()
79 Date.parse("Wed, 06 Jan 2016 11:55:59 GMT+05")); in test_parse_timezones()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java68 Number result = form.parse("123.123"); in test_parse_bigDecimal()
74 result = form.parse("123.123"); in test_parse_bigDecimal()
84 Number result = format.parse("123.123"); in test_parse_integerOnly()
89 result = format.parse("123.123"); in test_parse_integerOnly()
96 Number number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType()
103 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType()
107 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType()
118 number = form.parse("23.1f", new ParsePosition(0)); in test_parse_returnType()
122 number = form.parse("23.0", new ParsePosition(0)); in test_parse_returnType()
125 number = form.parse("-0.0", new ParsePosition(0)); in test_parse_returnType()
[all …]
DParseExceptionTest.java31 df.parse("HelloWorld"); in test_ConstructorLjava_lang_StringI()
44 df.parse("1999HelloWorld"); in test_getErrorOffset()
/libcore/luni/src/main/java/org/xml/sax/
DParser.java179 public abstract void parse (InputSource source) in parse() method
205 public abstract void parse (String systemId) in parse() method
DXMLReader.java375 public void parse (InputSource input) in parse() method
401 public void parse (String systemId) in parse() method
/libcore/ojluni/src/main/java/sun/security/timestamp/
DTimestampToken.java93 parse(timestampTokenInfo); in TimestampToken()
130 private void parse(byte[] timestampTokenInfo) throws IOException { in parse() method in TimestampToken
144 hashAlgorithm = AlgorithmId.parse(messageImprint.data.getDerValue()); in parse()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DDateTest.java303 Date d = new Date(Date.parse("13 October 1998")); in test_parseLjava_lang_String()
310 d = new Date(Date.parse("Jan-12 1999")); in test_parseLjava_lang_String()
313 d = new Date(Date.parse("Jan12-1999")); in test_parseLjava_lang_String()
316 d = new Date(Date.parse("Jan12 69-1")); in test_parseLjava_lang_String()
321 d = new Date(Date.parse("6:45:13 3/2/1200 MST")); in test_parseLjava_lang_String()
326 d = new Date(Date.parse("Mon, 22 Nov 1999 12:52:06 GMT")); in test_parseLjava_lang_String()
334 Date.parse(null); in test_parseLjava_lang_String()
342 -5400000, Date.parse("Sat, 1 Jan 1970 +0130 00:00:00")); in test_parseLjava_lang_String()
344 858600000, Date.parse("00:00:00 GMT +0130 Sat, 11 Jan 1970")); in test_parseLjava_lang_String()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DNoSubclassParser.java33 public void parse(InputSource source) { in parse() method in NoSubclassParser
36 public void parse(String systemId) { in parse() method in NoSubclassParser
DDoNothingParser.java34 public void parse(InputSource source) { in parse() method in DoNothingParser
37 public void parse(String systemId) { in parse() method in DoNothingParser
DNoAccessParser.java34 public void parse(InputSource source) { in parse() method in NoAccessParser
37 public void parse(String systemId) { in parse() method in NoAccessParser
DNoInstanceParser.java37 public void parse(InputSource source) { in parse() method in NoInstanceParser
40 public void parse(String systemId) { in parse() method in NoInstanceParser

12345