Searched refs:parse (Results 51 - 75 of 118) sorted by relevance

12345

/libcore/luni/src/test/java/libcore/xml/
H A DNormalizeTest.java341 parse(xml);
346 parse(xml);
354 parse(xml);
359 parse(xml);
392 parse(xml);
411 parse(xml);
585 private void parse(String xml) throws Exception { method in class:NormalizeTest
587 .parse(new InputSource(new StringReader(xml)));
H A DDomTest.java133 document = builder.parse(new InputSource(new StringReader(xml)));
189 assertNotNull("This implementation does not parse entity declarations", sp);
197 assertNotNull("This implementation does not parse notations", png);
650 .parse(new InputSource(new StringReader(xml)))
663 .parse(new InputSource(new StringReader(xml)))
808 document = builder.parse(new InputSource(new StringReader("<menu "
841 document = builder.parse(new InputSource(new StringReader("<menu "
1093 document = builder.parse(file);
1133 document = builder.parse(new InputSource(new StringReader(
1375 document = builder.parse(ne
[all...]
H A DNamespacedAttributesLookupTest.java136 reader.parse(new InputSource(new StringReader(xml)));
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
H A DAuthenticationHeader.java33 * This class is used to parse the information in WWW-Authenticate: and Proxy-Authenticate:
116 * parse a set of authentication headers and choose the preferred scheme
126 parse();
146 private void parse () { method in class:AuthenticationHeader
/libcore/ojluni/src/main/java/java/text/
H A DDateFormat.java70 * <p>{@code DateFormat} helps you to format and parse dates for any locale.
94 * <p>You can use a DateFormat to parse also.
96 * myDate = df.parse(myString);
120 * <p>You can also use forms of the parse and format methods with
123 * <ul><li>progressively parse through pieces of a string.
345 * See the {@link #parse(String, ParsePosition)} method for more information
353 public Date parse(String source) throws ParseException method in class:DateFormat
356 Date result = parse(source, pos);
364 * Parse a date/time string according to the given parse position. For
370 * the parse succeed
389 public abstract Date parse(String source, ParsePosition pos); method in class:DateFormat
[all...]
H A DNumberFormat.java68 * <code>NumberFormat</code> helps you to format and parse numbers for any locale.
100 * You can also use a <code>NumberFormat</code> to parse numbers:
103 * myNumber = nf.parse(myString);
129 * if true, "3456.78" -> 3456 (and leaves the parse position just after index 6)
130 * if false, "3456.78" -> 3456.78 (and leaves the parse position just after index 8)
144 * You can also use forms of the <code>parse</code> and <code>format</code>
148 * <li> progressively parse through pieces of a string
255 * The method attempts to parse text starting at the index given by
266 * See the {@link #parse(String, ParsePosition)} method for more information
277 return parse(sourc
333 public abstract Number parse(String source, ParsePosition parsePosition); method in class:NumberFormat
347 public Number parse(String source) throws ParseException { method in class:NumberFormat
[all...]
H A DSimpleDateFormat.java449 * The minus sign to be used with format and parse.
527 * the DateFormatSymbols. If true, the format and parse methods
529 * parse methods call Calendar.getDisplayName or
1387 * The method attempts to parse text starting at the index given by
1419 public Date parse(String text, ParsePosition pos) { method in class:SimpleDateFormat
1660 // Want to be able to parse both short and long forms.
1737 parse:
1743 break parse;
1753 break parse;
1762 break parse;
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DNumberFormatTest.java135 "Test3: NumberFormat.getIntegerInstance().parse(\"35.76\") returned wrong number",
136 new Long(35), format.parse("35.76"));
162 "Test3: NumberFormat.getIntegerInstance().parse(\"-36\") returned wrong number",
163 new Long(-36), format.parse("-36"));
185 "Test9: NumberFormat.getIntegerInstance(new Locale(\"ar\", \"AE\")).parse(\"-36-\") returned wrong number",
186 new Long(36), format.parse("36-"));
H A DChoiceFormatTest.java352 * @tests java.text.ChoiceFormat#parse(java.lang.String,
357 // java.text.ChoiceFormat.parse(java.lang.String,
361 .parse("One", new ParsePosition(0)).intValue());
364 Number result = f1.parse("Greater than two", pos);
370 assertTrue("Incorrect result", Double.isNaN(f1.parse("12one", pos)
374 result = f1.parse("12one and two", pos);
376 assertEquals("Ignored parse position", 1.0D, result.doubleValue(), 0.0D);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
H A DSAXParserFactoryTest.java154 sp.parse(is1, new MyHandler());
237 spf.newSAXParser().parse(is, mh);
242 spf.newSAXParser().parse(is, mh);
265 // spf.newSAXParser().parse(is2, mh);
280 // spf.newSAXParser().parse(is3, mh);
296 // spf.newSAXParser().parse(is2, mh);
311 // spf.newSAXParser().parse(is3, mh);
330 // spf.newSAXParser().parse(is, mh);
346 // spf.newSAXParser().parse(is, mh);
361 // spf.newSAXParser().parse(i
[all...]
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DPKCS8Key.java91 public static PKCS8Key parse (DerValue in) throws IOException { method in class:PKCS8Key
131 algorithm = AlgorithmId.parse (in.data.getDerValue ());
153 * values using the PKCS8Key member functions, such as <code>parse</code>
326 * instead provide a <code>parseKeyBits</code> method to parse any
351 algid = AlgorithmId.parse (val.data.getDerValue ());
/libcore/ojluni/src/main/java/sun/security/x509/
H A DX509Key.java52 * desirable to provide subclasses which understand how to parse keying
160 public static PublicKey parse(DerValue in) throws IOException method in class:X509Key
168 algorithm = AlgorithmId.parse(in.data.getDerValue());
190 * values using the X509Key member functions, such as <code>parse</code>
367 * instead provide a <code>parseKeyBits</code> method to parse any
389 algid = AlgorithmId.parse(val.data.getDerValue());
H A DX509CRLEntryImpl.java120 parse(new DerValue(revokedCert));
135 parse(derValue);
448 private void parse(DerValue derVal) method in class:X509CRLEntryImpl
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
H A DDocumentBuilderImpl.java91 public Document parse(InputSource source) throws SAXException, IOException { method in class:DocumentBuilderImpl
128 parse(parser, document, document, XmlPullParser.END_DOCUMENT);
177 private void parse(KXmlParser parser, DocumentImpl document, Node node, method in class:DocumentBuilderImpl
254 * the proper info and attributes. We then invoke parse()
295 parse(parser, document, element, XmlPullParser.END_TAG);
321 parse(parser, document, element, XmlPullParser.END_TAG);
/libcore/luni/src/test/java/libcore/java/text/
H A DOldNumberFormatTest.java35 assertEquals(new Long(-36), format.parse("-36"));
45 assertEquals(new Long(-36), format.parse("-36"));
57 assertEquals(-36L, format.parse("-36"));
741 "Test1: NumberFormat.getInstance().parse(\"1234567890.1\") returned wrong number",
742 new Double(1234567890.1), nf1.parse("1234567890.1"));
749 "Test2: NumberFormat.getInstance().parse(\"-1234567890.1\") returned wrong number",
750 new Double(-1234567890.1), nf1.parse("-1,234,567,890.1"));
756 nf1.parse("@1,234,567,8901");
765 "Test3: NumberFormat.getPercentInstance().parse(\"-123%\") returned wrong number",
766 new Double(-1.23), nf1.parse("
819 public Number parse(String source, ParsePosition parsePosition) { method in class:OldNumberFormatTest.MyNumberFormat
[all...]
H A DNumberFormatTest.java58 public Number parse(String string, ParsePosition p) {
120 nf.parse(null);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
H A DXMLFilterImplTest.java187 child.parse(is);
195 assertEquals("parse", logger.getMethod());
199 orphan.parse(is);
213 child.parse("foo");
221 assertEquals("parse", logger.getMethod());
225 orphan.parse("foo");
H A DXMLReaderAdapterTest.java158 adapter.parse("foo");
166 // "other" parse method.
167 assertEquals("parse", logger.getMethod(0));
175 adapter.parse(source);
182 assertEquals("parse", logger.getMethod());
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DParserAdapter.java373 * @see #parse(org.xml.sax.InputSource)
374 * @see org.xml.sax.Parser#parse(java.lang.String) method in class:ParserAdapter
376 public void parse (String systemId)
379 parse(new InputSource(systemId));
391 * @see #parse(java.lang.String)
392 * @see org.xml.sax.Parser#parse(org.xml.sax.InputSource) method in class:ParserAdapter
394 public void parse (InputSource input)
403 parser.parse(input);
/libcore/ojluni/src/main/java/java/util/
H A DServiceLoader.java170 * ServiceConfigurationError} to be thrown when this class attempts to parse
290 private Iterator<String> parse(Class service, URL u) method in class:ServiceLoader
350 pending = parse(service, configs.nextElement());
/libcore/ojluni/src/main/java/sun/misc/
H A DService.java214 private static Iterator parse(Class service, URL u, Set returned) method in class:Service
275 pending = parse(service, (URL)configs.nextElement(), returned);
/libcore/ojluni/src/main/java/sun/net/www/
H A DHeaderParser.java60 parse();
84 private void parse() { method in class:HeaderParser
249 System.out.print("enter line to parse> ");
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DX509CertificatePair.java120 parse(new DerValue(encoded));
223 private void parse(DerValue val) method in class:X509CertificatePair
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DGregorianCalendarTest.java332 Date date = new Date(Date.parse("Jan 15 00:00:01 GMT 2000"));
334 gc.setTimeInMillis(Date.parse("Dec 15 00:00:01 GMT 1582"));
337 gc.setTimeInMillis(Date.parse("Jan 16 00:00:01 GMT 2000"));
732 Date date = new Date(Date.parse("Jan 15 00:00:01 GMT 2000"));
735 gc.setTimeInMillis(Date.parse("Dec 24 00:00:01 GMT 2000"));
739 date = new Date(Date.parse("Feb 28 00:00:01 GMT 2000"));
742 gc.setTimeInMillis(Date.parse("Dec 1 00:00:01 GMT 2000"));
/libcore/luni/src/test/java/libcore/java/util/
H A DTimeZoneTest.java64 Date date = sdf.parse("1902-11-01T00:00:00.000+0800");
71 date = sdf.parse("1902-06-01T00:00:00.000+0800");
104 Date date = sdf.parse(isoTime);

Completed in 1313 milliseconds

12345