Home
last modified time | relevance | path

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

12345

/dalvik/libcore/xml/src/main/java/javax/xml/parsers/
DSAXParser.java148 public void parse(File file, HandlerBase handler) throws SAXException, in parse() method in SAXParser
157 parse(source, handler); in parse()
171 public void parse(File file, DefaultHandler handler) throws SAXException, in parse() method in SAXParser
180 parse(source, handler); in parse()
194 public void parse(InputStream stream, HandlerBase handler) in parse() method in SAXParser
199 parse(new InputSource(stream), handler); in parse()
215 public void parse(InputStream stream, HandlerBase handler, String systemId) in parse() method in SAXParser
224 parse(source, handler); in parse()
238 public void parse(InputStream stream, DefaultHandler handler) in parse() method in SAXParser
240 parse(new InputSource(stream), handler); in parse()
[all …]
DDocumentBuilder.java133 public Document parse(File file) throws SAXException, IOException { in parse() method in DocumentBuilder
138 return parse(new BufferedInputStream(new FileInputStream(file), 8192)); in parse()
152 public Document parse(InputStream stream) throws SAXException, IOException { in parse() method in DocumentBuilder
157 return parse(new InputSource(stream)); in parse()
172 public org.w3c.dom.Document parse(InputStream stream, String systemId) in parse() method in DocumentBuilder
180 return parse(source); in parse()
195 public org.w3c.dom.Document parse(String uri) throws SAXException, in parse() method in DocumentBuilder
201 return parse(new InputSource(uri)); in parse()
215 public abstract org.w3c.dom.Document parse(InputSource source) in parse() method in DocumentBuilder
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DLevelTest.java193 assertSame(Level.SEVERE, Level.parse("SEVERE")); in testParse_PredefinedConstStrings()
194 assertSame(Level.WARNING, Level.parse("WARNING")); in testParse_PredefinedConstStrings()
195 assertSame(Level.INFO, Level.parse("INFO")); in testParse_PredefinedConstStrings()
196 assertSame(Level.CONFIG, Level.parse("CONFIG")); in testParse_PredefinedConstStrings()
197 assertSame(Level.FINE, Level.parse("FINE")); in testParse_PredefinedConstStrings()
198 assertSame(Level.FINER, Level.parse("FINER")); in testParse_PredefinedConstStrings()
199 assertSame(Level.FINEST, Level.parse("FINEST")); in testParse_PredefinedConstStrings()
200 assertSame(Level.OFF, Level.parse("OFF")); in testParse_PredefinedConstStrings()
201 assertSame(Level.ALL, Level.parse("ALL")); in testParse_PredefinedConstStrings()
215 Level.parse("SEVERe"); in testParse_IllegalConstString()
[all …]
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DSimpleDateFormatTest.java90 public void parse(String pattern, String input, Date expected, in parse() method in SimpleDateFormatTest.TestFormat
95 Date result = pFormat.parse(input, position); in parse()
772 test.parse("h", " 12", time, 1, 3); in test_parseLjava_lang_StringLjava_text_ParsePosition()
773 test.parse("H", " 0", time, 1, 2); in test_parseLjava_lang_StringLjava_text_ParsePosition()
774 test.parse("k", " 24", time, 1, 3); in test_parseLjava_lang_StringLjava_text_ParsePosition()
775 test.parse("K", " 0", time, 1, 2); in test_parseLjava_lang_StringLjava_text_ParsePosition()
779 test.parse("h", "1", time, 0, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition()
780 test.parse("H", "1 ", time, 0, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition()
781 test.parse("k", "1", time, 0, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition()
782 test.parse("K", "1", time, 0, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition()
[all …]
DDecimalFormatTestICU.java113 assertEquals(123, format.parse("xxxxxxxxx123.0").intValue()); in test_paddingPattern()
122 assertEquals(2, format.parse("\u00e72 o'clock").intValue()); in test_paddingPattern()
123 assertEquals(12, format.parse("12 o'clock").intValue()); in test_paddingPattern()
161 assertEquals(100, format.parse("1E+2").intValue()); in test_positiveExponentSign()
162 assertEquals(0.01f, format.parse("1E-2").floatValue()); in test_positiveExponentSign()
166 assertEquals(100, format.parse("1E2 m/s").intValue()); in test_positiveExponentSign()
170 assertEquals(0.00123f, format.parse("12.3E-4").floatValue()); in test_positiveExponentSign()
174 assertEquals(12345, format.parse("12.345E3").intValue()); in test_positiveExponentSign()
203 assertEquals(1234567890, format.parse("123,456,7890").intValue()); in test_secondaryGroupingSize()
206 assertEquals(1234567890, format.parse("123,456,7890").intValue()); in test_secondaryGroupingSize()
[all …]
DDecimalFormatTest.java168 Number result = form.parse("123.123"); in test_isParseBigDecimalLjava_lang_Boolean_isParseIntegerOnlyLjava_lang_Boolean()
178 Number result = form.parse("123.123"); in test_isParseBigDecimalLjava_lang_Boolean_isParseIntegerOnlyLjava_lang_Boolean()
211 Number result = format.parse("123.123"); in test_isParseIntegerOnly()
220 Number result = format.parse("123.123"); in test_isParseIntegerOnly()
258 Number number = form.parse("23.1", new ParsePosition(0)); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
265 number = form.parse("23.1", new ParsePosition(0)); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
269 number = form.parse("23.1", new ParsePosition(0)); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
281 number = form.parse("23.1f", new ParsePosition(0)); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
285 number = form.parse("23.0", new ParsePosition(0)); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
288 number = form.parse("-0.0", new ParsePosition(0)); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
[all …]
DParseExceptionTest.java44 df.parse("HelloWorld"); in test_ConstructorLjava_lang_StringI()
65 df.parse("1999HelloWorld"); in test_getErrorOffset()
/dalvik/libcore/xml/src/test/java/tests/api/javax/xml/parsers/
DDocumentBuilderTest.java103 public Document parse(InputSource is) throws SAXException, IOException { in parse() method in DocumentBuilderTest.MockDocumentBuilder
287 Document d = db.parse(f); in test_parseLjava_io_File()
304 db.parse((File)null); in test_parseLjava_io_File()
316 db.parse(new File("_")); in test_parseLjava_io_File()
327 db.parse(f); in test_parseLjava_io_File()
369 Document d = db.parse(is); in test_parseLjava_io_InputStream()
386 db.parse((InputStream)null); in test_parseLjava_io_InputStream()
398 db.parse(new FileInputStream("_")); in test_parseLjava_io_InputStream()
409 db.parse(is); in test_parseLjava_io_InputStream()
437 Document d = db.parse(is); in testParseInputSource()
[all …]
DSAXParserTest.java359 parser.parse(list_wf[i], dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
366 parser.parse(list_nwf[i], dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
375 parser.parse((File) null, dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
382 parser.parse(list_wf[0], (DefaultHandler) null); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
400 parser.parse(list_wf[i], dh); in testParseFileHandlerBase()
413 parser.parse(list_nwf[i], dh); in testParseFileHandlerBase()
426 parser.parse((File) null, dh); in testParseFileHandlerBase()
437 parser.parse(list_wf[0], (HandlerBase) null); in testParseFileHandlerBase()
470 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
479 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
[all …]
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/
DExpatReader.java255 public void parse(InputSource input) throws IOException, SAXException { in parse() method in ExpatReader
273 parse(reader, input.getPublicId(), input.getSystemId()); in parse()
286 parse(in, encoding, input.getPublicId(), input.getSystemId()); in parse()
302 parse(in, encoding, input.getPublicId(), systemId); in parse()
308 private void parse(Reader in, String publicId, String systemId) in parse() method in ExpatReader
320 private void parse(InputStream in, String encoding, String publicId, in parse() method in ExpatReader
332 public void parse(String systemId) throws IOException, SAXException { in parse() method in ExpatReader
333 parse(new InputSource(systemId)); in parse()
/dalvik/libcore/xml/src/main/java/org/xml/sax/
DParser.java178 public abstract void parse (InputSource source) in parse() method
204 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
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
DDateTest.java44 -5400000, Date.parse("Sat, 1 Jan 1970 +0130 00:00:00")); in test_parseLjava_lang_String()
46 858600000, Date.parse("00:00:00 GMT +0130 Sat, 11 Jan 1970")); in test_parseLjava_lang_String()
/dalvik/libcore/xml/src/test/java/tests/api/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
DNoInstanceParser.java37 public void parse(InputSource source) { in parse() method in NoInstanceParser
40 public void parse(String systemId) { in parse() method in NoInstanceParser
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
DDoNothingXMLReader.java55 public void parse(InputSource input) { in parse() method in DoNothingXMLReader
58 public void parse(String systemId) { in parse() method in DoNothingXMLReader
DNoSubclassXMLReader.java55 public void parse(InputSource input) { in parse() method in NoSubclassXMLReader
58 public void parse(String systemId) { in parse() method in NoSubclassXMLReader
DNoAccessXMLReader.java55 public void parse(InputSource input) { in parse() method in NoAccessXMLReader
58 public void parse(String systemId) { in parse() method in NoAccessXMLReader
DNoInstanceXMLReader.java58 public void parse(InputSource input) { in parse() method in NoInstanceXMLReader
61 public void parse(String systemId) { in parse() method in NoInstanceXMLReader
DMockParser.java40 public void parse(InputSource source) throws SAXException, IOException { in parse() method in MockParser
44 public void parse(String systemId) throws SAXException, IOException { in parse() method in MockParser
/dalvik/libcore/xml/src/test/java/org/apache/harmony/xml/
DExpatParserTest.java62 parse(SNIPPET, contentHandler); in testExceptions()
76 parse(SNIPPET, contentHandler); in testExceptions()
89 parse(SNIPPET, contentHandler); in testExceptions()
98 parse(SNIPPET, handler); in testSax()
103 parse(new StringReader(SNIPPET), handler); in testSax()
108 parse(new ByteArrayInputStream(SNIPPET.getBytes()), in testSax()
320 parse(XML, handler); in testNamespaces()
511 reader.parse(new InputSource(in)); in testDtd()
557 reader.parse(new InputSource(in)); in testCdata()
594 reader.parse(new InputSource(in)); in testProcessingInstructions()
[all …]
/dalvik/dx/src/com/android/dx/cf/direct/
DAttributeListParser.java115 parse(); in parseIfNecessary()
122 private void parse() { in parse() method in AttributeListParser
142 attributeFactory.parse(cf, context, at, observer); in parse()
/dalvik/libcore/xml/src/main/java/org/xml/sax/helpers/
DXMLReaderAdapter.java199 public void parse (String systemId) in parse() method in XMLReaderAdapter
202 parse(new InputSource(systemId)); in parse()
221 public void parse (InputSource input) in parse() method in XMLReaderAdapter
225 xmlReader.parse(input); in parse()

12345