Searched defs:parse (Results 1 - 25 of 47) sorted by relevance

12

/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/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/test/java/tests/api/org/xml/sax/support/
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 DMockFilter.java80 public void parse(InputSource input) throws SAXException, IOException { method in class:MockFilter
81 logger.add("parse", input);
85 public void parse(String systemId) throws SAXException, IOException { method in class:MockFilter
86 logger.add("parse", systemId);
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);
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 DNoInstanceParser.java37 public void parse(InputSource source) { method in class:NoInstanceParser
40 public void parse(String systemId) { method in class:NoInstanceParser
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 DDoNothingXMLReader.java55 public void parse(InputSource input) { method in class:DoNothingXMLReader
58 public void parse(String systemId) { method in class:DoNothingXMLReader
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 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 DMockReader.java87 public void parse(InputSource input) throws IOException, SAXException { method in class:MockReader
88 logger.add("parse", input);
91 public void parse(String systemId) throws IOException, SAXException { method in class:MockReader
92 logger.add("parse", systemId);
/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/main/java/org/apache/harmony/security/x509/
H A DDNParser.java386 public List<List<AttributeTypeAndValue>> parse() throws IOException { method in class:DNParser
/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/test/java/libcore/java/text/
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...]
H A DOldSimpleDateFormatTest.java66 public void parse(String pattern, String input, Date expected, int start, int end) { method in class:OldSimpleDateFormatTest.FormatTester
69 Date result = pFormat.parse(input, position);
463 format.parse("240 11 2002 March", null);
470 format.parse(null, new ParsePosition(0));
/libcore/benchmarks/src/benchmarks/regression/
H A DParseBenchmark.java100 parser.parse(text);
126 void parse(String data) throws Exception; method in interface:ParseBenchmark.Parser
130 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.AndroidStreamParser
181 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.OrgJsonParser
193 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.GeneralXmlPullParser
205 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.XmlDomParser
207 .parse(new InputSource(new StringReader(data)));
212 @Override public void parse(String data) throws Exception { method in class:ParseBenchmark.XmlSaxParser
213 SAXParserFactory.newInstance().newSAXParser().parse(
/libcore/luni/src/main/java/java/text/
H A DChoiceFormat.java147 Number value = format.parse(template, position);
366 * the source string to parse.
371 * @return a Double resulting from the parse, or Double.NaN if there is an
375 public Number parse(String string, ParsePosition position) { method in class:ChoiceFormat
/libcore/luni/src/main/java/java/util/logging/
H A DLevel.java105 public static Level parse(String name) throws IllegalArgumentException { method in class:Level
141 throw new IllegalArgumentException("Cannot parse name '" + name + "'");
/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...]
/libcore/luni/src/main/java/java/lang/
H A DHexStringParser.java90 long result = parser.parse(hexString, true);
99 int result = (int) parser.parse(hexString, false);
103 private long parse(String hexString, boolean isDouble) { method in class:HexStringParser

Completed in 5562 milliseconds

12