Searched refs:parse (Results 1 - 25 of 84) sorted by relevance

1234

/libcore/luni/src/main/java/javax/xml/parsers/
H A DDocumentBuilder.java46 * 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 DSAXParser.java118 * @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 DOldDecimalFormatTestICU.java77 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 DSimpleDateFormatTest.java104 Date d = sdf.parse(value, pp);
119 // ...but not in the US. Check we can parse such a date anyway.
154 sdf.parse("2010-12-03 00:00:00 -0800");
165 Date date = sdf.parse("2010-07-08 02:44:48");
176 * longer use their DST zone but we should continue to parse it properly.
180 Date normal = format.parse("1970-01-01T00:00 EET");
181 Date dst = format.parse("1970-01-01T00:00 EEST");
188 calendar.setTime(format.parse("2011-06-21T10:00 Pacific Standard Time")); // 18:00 GMT-8
196 calendar.setTime(format.parse("2010-12-21T10:00 Pacific Daylight Time")); // 17:00 GMT-7
205 calendar.setTime(format.parse("201
[all...]
H A DOldDateFormatTest.java40 public Date parse(String source, ParsePosition pos) { method in class:OldDateFormatTest.MockDateFormat
204 * java.text.DateFormat#parse(String)
210 format.parse("not a Date");
219 Date date = format.parse(format.format(current).toString());
232 format.parse("27/08/1998");
238 format.parse("30/30/908 4:50, PDT");
244 format.parse("837039928046");
252 Date date = format.parse(format.format(current).toString());
265 format.parse("Jan 16 1970");
272 format.parse("2
[all...]
/libcore/luni/src/main/java/org/xml/sax/
H A DParser.java29 * 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 DXMLReader.java31 * 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 DHttpDate.java45 * 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/luni/src/test/java/tests/api/org/xml/sax/support/
H A DNoSubclassParser.java33 public void parse(InputSource source) { method in class:NoSubclassParser
36 public void parse(String systemId) { method in class:NoSubclassParser
H A DDoNothingParser.java34 public void parse(InputSource source) { method in class:DoNothingParser
37 public void parse(String systemId) { method in class:DoNothingParser
H A DDoNothingXMLReader.java55 public void parse(InputSource input) { method in class:DoNothingXMLReader
58 public void parse(String systemId) { method in class:DoNothingXMLReader
H A DNoAccessParser.java34 public void parse(InputSource source) { method in class:NoAccessParser
37 public void parse(String systemId) { method in class:NoAccessParser
H A DNoAccessXMLReader.java55 public void parse(InputSource input) { method in class:NoAccessXMLReader
58 public void parse(String systemId) { method in class:NoAccessXMLReader
H A DNoInstanceParser.java37 public void parse(InputSource source) { method in class:NoInstanceParser
40 public void parse(String systemId) { method in class:NoInstanceParser
H A DNoInstanceXMLReader.java58 public void parse(InputSource input) { method in class:NoInstanceXMLReader
61 public void parse(String systemId) { method in class:NoInstanceXMLReader
H A DNoSubclassXMLReader.java55 public void parse(InputSource input) { method in class:NoSubclassXMLReader
58 public void parse(String systemId) { method in class:NoSubclassXMLReader
H A DMockParser.java40 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);
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/
H A DDocumentBuilderTest.java89 * @see javax.xml.parsers.DocumentBuilder#parse(org.xml.sax.InputSource)
92 public Document parse(InputSource is) throws SAXException, IOException { method in class:DocumentBuilderTest.MockDocumentBuilder
226 Document d = db.parse(f);
231 * javax.xml.parsers.DocumentBuilder#parse(java.io.File)
232 * Case 1: Try to parse correct xml document.
233 * Case 2: Try to call parse() with null argument.
234 * Case 3: Try to parse a non-existent file.
235 * Case 4: Try to parse incorrect xml file.
242 Document d = db.parse(f);
257 // case 2: Try to call parse wit
[all...]
H A DSAXParserTest.java210 // parser.parse(is, dh, ParsingSupport.XML_SYSTEM_ID);
227 // parser.parse(is, hb, ParsingSupport.XML_SYSTEM_ID);
305 * @test javax.xml.parsers.SAXParser#parse(java.io.File,
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((Fil
[all...]
H A DDocumentBuilderFactoryTest.java312 db.parse(getClass().getResourceAsStream("/simple.xml"));
384 Document document = parser.parse(getClass().getResourceAsStream(
412 Document document = parser.parse(getClass().getResourceAsStream(
447 Document document = parser.parse(getClass().getResourceAsStream(
470 Document document = parser.parse(getClass().getResourceAsStream(
545 Document document = parser.parse(getClass().getResourceAsStream(
568 Document document = parser.parse(getClass().getResourceAsStream(
594 Document document = parser.parse(getClass().getResourceAsStream(
613 Document document = parser.parse(getClass().getResourceAsStream(
637 Document document = parser.parse(getClas
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DSaxTest.java34 * 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...]
H A DExpatSaxParserTest.java57 parse(xml.toString(), new DefaultHandler());
71 parse(SNIPPET, contentHandler);
85 parse(SNIPPET, contentHandler);
98 parse(SNIPPET, contentHandler);
107 parse(SNIPPET, handler);
112 parse(new StringReader(SNIPPET), handler);
117 parse(new ByteArrayInputStream(SNIPPET.getBytes()),
177 parse(XML, handler);
366 reader.parse(new InputSource(in));
467 reader.parse(ne
630 private static void parse(String xml, ContentHandler contentHandler) method in class:ExpatSaxParserTest
645 private static void parse(Reader in, ContentHandler contentHandler) method in class:ExpatSaxParserTest
656 private static void parse(InputStream in, Encoding encoding, method in class:ExpatSaxParserTest
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatReader.java217 * 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 encoding, String publicId, method in class:ExpatReader
324 public void parse(String systemId) throws IOException, SAXException { method in class:ExpatReader
325 parse(new InputSource(systemId));
/libcore/luni/src/main/java/org/w3c/dom/ls/
H A DLSParser.java144 * source. This <code>DOMConfiguration</code> is specific to the parse
148 * parse operation. The DOM application is responsible for passing any
315 public Document parse(LSInput input) method in interface:LSParser
344 * Append the result of the parse operation as children of the context
351 * parse operation. For this action to work, the context node must be an
357 * Insert the result of the parse operation as the immediately preceding
364 * Insert the result of the parse operation as the immediately following
371 * Replace the context node with the result of the parse operation. For
398 * <code>LSParser.parse()</code>.
429 * @return Return the node that is the result of the parse operatio
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DXMLReaderAdapter.java195 * @see #parse(org.xml.sax.InputSource)
196 * @see org.xml.sax.Parser#parse(java.lang.String)
198 public void parse (String systemId)
201 parse(new InputSource(systemId));
217 * @see #parse(java.lang.String)
218 * @see org.xml.sax.Parser#parse(org.xml.sax.InputSource)
220 public void parse (InputSource input)
224 xmlReader.parse(input);
197 public void parse (String systemId) method in class:XMLReaderAdapter
219 public void parse (InputSource input) method in class:XMLReaderAdapter

Completed in 316 milliseconds

1234