/libcore/luni/src/main/java/javax/xml/parsers/ |
H A D | DocumentBuilder.java | 46 * implementation use a SAX parser to parse XML document into a 96 * @exception SAXException If any parse errors occur. 100 public Document parse(InputStream is) method in class:DocumentBuilder 107 return parse(in); 120 * @exception SAXException If any parse errors occur. 124 public Document parse(InputStream is, String systemId) method in class:DocumentBuilder 132 return parse(in); 144 * @exception SAXException If any parse errors occur. 148 public Document parse(String uri) method in class:DocumentBuilder 155 return parse(i 171 public Document parse(File f) throws SAXException, IOException { method in class:DocumentBuilder 199 public abstract Document parse(InputSource is) method in class:DocumentBuilder [all...] |
H A D | SAXParser.java | 118 * @throws SAXException If parse produces a SAX error. 124 public void parse(InputStream is, HandlerBase hb) method in class:SAXParser 131 this.parse(input, hb); 152 public void parse( method in class:SAXParser 163 this.parse(input, hb); 180 public void parse(InputStream is, DefaultHandler dh) method in class:SAXParser 187 this.parse(input, dh); 205 public void parse( method in class:SAXParser 216 this.parse(input, dh); 235 public void parse(Strin method in class:SAXParser 259 public void parse(String uri, DefaultHandler dh) method in class:SAXParser 284 public void parse(File f, HandlerBase hb) method in class:SAXParser 313 public void parse(File f, DefaultHandler dh) method in class:SAXParser 346 public void parse(InputSource is, HandlerBase hb) method in class:SAXParser 377 public void parse(InputSource is, DefaultHandler dh) method in class:SAXParser [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldDecimalFormatTestICU.java | 77 assertEquals(123, format.parse("xxxxxxxxx123.0").intValue()); 86 assertEquals(2, format.parse("\u00e72 o'clock").intValue()); 87 assertEquals(12, format.parse("12 o'clock").intValue()); 111 assertEquals(100, format.parse("1E+2").intValue()); 112 assertEquals(0.01f, format.parse("1E-2").floatValue()); 116 assertEquals(100, format.parse("1E2 m/s").intValue()); 120 assertEquals(0.00123f, format.parse("12.3E-4").floatValue()); 124 assertEquals(12345, format.parse("12.345E3").intValue()); 139 assertEquals(1234567890, format.parse("123,456,7890").intValue()); 142 assertEquals(1234567890, format.parse("12 [all...] |
H A D | SimpleDateFormatTest.java | 100 // It's pretty silly to try to parse the shortest names, because they're almost always 214 Date d = sdf.parse(value, pp); 215 assertNull("Value " + value + " must not parse in locale " + l + " with format " + fmt, d); 221 Date d = sdf.parse(value, pp); 287 sdf.parse("2010-12-03 00:00:00 -0800"); 298 Date date = sdf.parse("2010-07-08 02:44:48"); 310 calendar.setTime(format.parse("2011-06-21T10:00 Pacific Standard Time")); // 18:00 GMT-8 318 calendar.setTime(format.parse("2010-12-21T10:00 Pacific Daylight Time")); // 17:00 GMT-7 327 calendar.setTime(format.parse("2011-06-21T20:00 Lord Howe Daylight Time")); // 9:00 GMT+11 335 calendar.setTime(format.parse("201 [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | ParseExceptionTest.java | 31 df.parse("HelloWorld"); 44 df.parse("1999HelloWorld");
|
/libcore/luni/src/main/java/org/xml/sax/ |
H A D | Parser.java | 29 * and to initiate a parse from a URI, or a character stream.</p> 36 * once the first parse has completed successfully, but it may not 37 * invoke the parse() methods recursively within a parse.</p> 62 * not request a locale change in the middle of a parse.</p> 84 * in the middle of a parse, and the SAX parser must begin using 103 * handler in the middle of a parse, and the SAX parser must 122 * middle of a parse, and the SAX parser must begin using the new 141 * middle of a parse, and the SAX parser must begin using the new 159 * <p>Applications may not invoke this method while a parse i 179 public abstract void parse (InputSource source) method in interface:Parser 205 public abstract void parse (String systemId) method in interface:Parser [all...] |
H A D | XMLReader.java | 31 * a document parse.</p> 34 * {@link #parse parse} methods must not return until parsing 77 * contexts, such as before, during, or after a parse. 104 * // parse the first document 106 * r.parse("http://www.foo.com/mydoc.xml"); 138 * a parse.</p> 164 * contexts, such as before, during, or after a parse.</p> 194 * a parse.</p> 229 * middle of a parse, an 375 public void parse (InputSource input) method in interface:XMLReader 401 public void parse (String systemId) method in interface:XMLReader [all...] |
/libcore/luni/src/main/java/libcore/net/http/ |
H A D | HttpDate.java | 45 * If we fail to parse a date in a non-standard format, try each of these formats in sequence. 71 public static Date parse(String value) { method in class:HttpDate 73 return STANDARD_DATE_FORMAT.get().parse(value); 78 return new SimpleDateFormat(formatString, Locale.US).parse(value);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/ |
H A D | NoSubclassParser.java | 33 public void parse(InputSource source) { method in class:NoSubclassParser 36 public void parse(String systemId) { method in class:NoSubclassParser
|
H A D | DoNothingParser.java | 34 public void parse(InputSource source) { method in class:DoNothingParser 37 public void parse(String systemId) { method in class:DoNothingParser
|
H A D | DoNothingXMLReader.java | 55 public void parse(InputSource input) { method in class:DoNothingXMLReader 58 public void parse(String systemId) { method in class:DoNothingXMLReader
|
H A D | NoAccessParser.java | 34 public void parse(InputSource source) { method in class:NoAccessParser 37 public void parse(String systemId) { method in class:NoAccessParser
|
H A D | NoAccessXMLReader.java | 55 public void parse(InputSource input) { method in class:NoAccessXMLReader 58 public void parse(String systemId) { method in class:NoAccessXMLReader
|
H A D | NoInstanceParser.java | 37 public void parse(InputSource source) { method in class:NoInstanceParser 40 public void parse(String systemId) { method in class:NoInstanceParser
|
H A D | NoSubclassXMLReader.java | 55 public void parse(InputSource input) { method in class:NoSubclassXMLReader 58 public void parse(String systemId) { method in class:NoSubclassXMLReader
|
H A D | MockParser.java | 40 public void parse(InputSource source) throws SAXException, IOException { method in class:MockParser 41 logger.add("parse", source); 44 public void parse(String systemId) throws SAXException, IOException { method in class:MockParser 45 logger.add("parse", systemId);
|
H A D | NoInstanceXMLReader.java | 58 public void parse(InputSource input) { method in class:NoInstanceXMLReader 61 public void parse(String systemId) { method in class:NoInstanceXMLReader
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
H A D | DocumentBuilderTest.java | 92 * @see javax.xml.parsers.DocumentBuilder#parse(org.xml.sax.InputSource) 95 public Document parse(InputSource is) throws SAXException, IOException { method in class:DocumentBuilderTest.MockDocumentBuilder 229 Document d = db.parse(f); 234 * javax.xml.parsers.DocumentBuilder#parse(java.io.File) 235 * Case 1: Try to parse correct xml document. 236 * Case 2: Try to call parse() with null argument. 237 * Case 3: Try to parse a non-existent file. 238 * Case 4: Try to parse incorrect xml file. 245 Document d = db.parse(f); 260 // case 2: Try to call parse wit [all...] |
H A D | SAXParserTest.java | 215 // parser.parse(is, dh, ParsingSupport.XML_SYSTEM_ID); 232 // parser.parse(is, hb, ParsingSupport.XML_SYSTEM_ID); 315 parser.parse(list_wf[i], dh); 322 parser.parse(list_nwf[i], dh); 331 parser.parse((File) null, dh); 338 parser.parse(list_wf[0], (DefaultHandler) null); 350 parser.parse(list_wf[i], dh); 363 parser.parse(list_nwf[i], dh); 376 parser.parse((File) null, dh); 387 parser.parse(list_w [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | HttpCookieTest.java | 390 HttpCookie cookie1 = HttpCookie.parse("Set-Cookie:name=value;max-age=2;").get(0); 391 HttpCookie cookie2 = HttpCookie.parse("Set-Cookie:name=value;max-age=100;").get(0); 418 HttpCookie pastExpiryCookie = HttpCookie.parse(pastExpiryCookieHeader).get(0); 424 HttpCookie futureExpiryCookie = HttpCookie.parse(futureExpiryCookieHeader).get(0); 539 * java.net.HttpCookie#parse(String) for exception cases 544 HttpCookie.parse(null); 555 * href="http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/cookie/NetscapeDraftSpec.html#parse(java.lang.String,%20int,%20java.lang.String,%20boolean,%20java.lang.String)"> 556 * http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/cookie/NetscapeDraftSpec.html#parse(java.lang.String,%20int,%20java.lang.String,%20boolean,%20java.lang.String) 601 * java.net.HttpCookie#parse(String) for locales other than 608 .parse("Se [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | ParseBenchmark.java | 100 parser.parse(text); 122 void parse(String data) throws Exception; method in interface:ParseBenchmark.Parser 126 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.AndroidStreamParser 177 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.OrgJsonParser 189 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.GeneralXmlPullParser 201 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.XmlDomParser 203 .parse(new InputSource(new StringReader(data))); 208 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.XmlSaxParser 209 SAXParserFactory.newInstance().newSAXParser().parse(
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | DateTest.java | 74 Date.parse("Wed, 06 Jan 2016 11:55:59 GMT+05:00"), 75 Date.parse("Wed, 06 Jan 2016 11:55:59 GMT+0500")); 78 Date.parse("Wed, 06 Jan 2016 11:55:59 GMT+05:00"), 79 Date.parse("Wed, 06 Jan 2016 11:55:59 GMT+05"));
|
/libcore/ojluni/src/main/java/sun/security/timestamp/ |
H A D | TimestampToken.java | 93 parse(timestampTokenInfo); 130 private void parse(byte[] timestampTokenInfo) throws IOException { method in class:TimestampToken 144 hashAlgorithm = AlgorithmId.parse(messageImprint.data.getDerValue());
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | SaxTest.java | 34 * Initiate and observe a SAX parse session. 39 parse(false, false, "<foo bar=\"baz\"/>", new DefaultHandler() { 52 parse(false, false, "<a:foo a:bar=\"baz\"/>", new DefaultHandler() { 67 parse(false, true, "<foo bar=\"baz\"/>", new DefaultHandler() { 80 parse(false, true, "<a:foo a:bar=\"baz\" xmlns:a=\"http://quux\"/>", new DefaultHandler() { 99 parse(true, true, "<foo bar=\"baz\"/>", new DefaultHandler() { 112 parse(true, true, "<a:foo a:bar=\"baz\" xmlns:a=\"http://quux\"/>", new DefaultHandler() { 130 parse(true, false, "<foo bar=\"baz\"/>", new DefaultHandler() { 143 parse(true, false, "<a:foo a:bar=\"baz\"/>", new DefaultHandler() { 200 reader.parse(ne 203 private void parse(boolean prefixes, boolean namespaces, String xml, method in class:SaxTest [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
H A D | ExpatReader.java | 217 * middle of a parse, and the SAX parser must begin using the new 249 public void parse(InputSource input) throws IOException, SAXException { method in class:ExpatReader 267 parse(reader, input.getPublicId(), input.getSystemId()); 279 parse(in, encoding, input.getPublicId(), input.getSystemId()); 294 parse(in, encoding, input.getPublicId(), systemId); 300 private void parse(Reader in, String publicId, String systemId) method in class:ExpatReader 312 private void parse(InputStream in, String charsetName, String publicId, String systemId) method in class:ExpatReader 319 public void parse(String systemId) throws IOException, SAXException { method in class:ExpatReader 320 parse(new InputSource(systemId));
|