/libcore/luni/src/main/java/javax/xml/parsers/ |
H A D | DocumentBuilder.java | 141 * @param uri The location of the content to be parsed. 148 public Document parse(String uri) argument 150 if (uri == null) { 154 InputSource in = new InputSource(uri);
|
H A D | SAXParser.java | 226 * @param uri The location of the content to be parsed. 229 * @throws IllegalArgumentException If the uri is null. 235 public void parse(String uri, HandlerBase hb) argument 237 if (uri == null) { 238 throw new IllegalArgumentException("uri cannot be null"); 241 InputSource input = new InputSource(uri); 250 * @param uri The location of the content to be parsed. 253 * @throws IllegalArgumentException If the uri is null. 259 public void parse(String uri, DefaultHandler dh) argument 261 if (uri [all...] |
/libcore/luni/src/main/java/javax/xml/xpath/ |
H A D | XPathFactory.java | 25 *<p>See {@link #newInstance(String uri)} for lookup mechanism.</p> 46 * <p>Protected constructor as {@link #newInstance()}, {@link #newInstance(String uri)} 47 * or {@link #newInstance(String uri, String factoryClassName, ClassLoader classLoader)} 88 * If the system property {@link #DEFAULT_PROPERTY_NAME} + ":uri" is present, 89 * where uri is the parameter to this method, then its value is read as a class name. 122 * @param uri Identifies the underlying object model. 130 * @throws NullPointerException If <code>uri</code> is <code>null</code>. 131 * @throws IllegalArgumentException If <code>uri.length() == 0</code>. 133 public static final XPathFactory newInstance(final String uri) argument 135 if (uri 165 newInstance(String uri, String factoryClassName, ClassLoader classLoader) argument [all...] |
H A D | XPathFactoryFinder.java | 120 * @param uri 128 public XPathFactory newFactory(String uri) { argument 129 if (uri == null) { 130 throw new NullPointerException("uri == null"); 132 XPathFactory f = _newFactory(uri); 135 debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri); 137 debugPrintln("unable to find a factory for " + uri); 146 * @param uri identifies the object model. 148 private XPathFactory _newFactory(String uri) { argument 150 String propertyName = SERVICE_CLASS.getName() + ":" + uri; 269 loadFromServicesFile(String uri, String resourceName, InputStream in) argument [all...] |
/libcore/luni/src/main/java/libcore/net/ |
H A D | UriCodec.java | 42 public final String validate(String uri, int start, int end, String name) argument 45 char ch = uri.charAt(i); 53 throw new URISyntaxException(uri, "Incomplete % sequence in " + name, i); 55 int d1 = hexToInt(uri.charAt(i + 1)); 56 int d2 = hexToInt(uri.charAt(i + 2)); 58 throw new URISyntaxException(uri, "Invalid % sequence: " 59 + uri.substring(i, i + 3) + " in " + name, i); 63 throw new URISyntaxException(uri, "Illegal character in " + name, i); 66 return uri.substring(start, end);
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FtpURLConnection.java | 99 private URI uri; field in class:FtpURLConnection 119 uri = null; 121 uri = url.toURI(); 177 proxyList = selector.select(uri); 198 selector.connectFailed(uri, currentProxy.address(), ioe);
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | GeneralName.java | 369 String uri = (String) name; 370 int begin = uri.indexOf("://")+3; 371 int end = uri.indexOf('/', begin); 373 ? uri.substring(begin) 374 : uri.substring(begin, end); 375 uri = (String) gname.getName(); 376 begin = uri.indexOf("://")+3; 377 end = uri.indexOf('/', begin); 379 ? uri.substring(begin) 380 : uri 594 checkURI(String uri) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
H A D | ExpatAttributes.java | 77 public int getIndex(String uri, String localName) { argument 78 if (uri == null) { 79 throw new NullPointerException("uri == null"); 88 return getIndex(pointer, uri, localName); 102 public String getType(String uri, String localName) { argument 103 if (uri == null) { 104 throw new NullPointerException("uri == null"); 109 return getIndex(uri, localName) == -1 ? null : CDATA; 116 public String getValue(String uri, String localName) { argument 117 if (uri 145 getIndex(long attributePointer, String uri, String localName) argument 147 getValue(long attributePointer, String uri, String localName) argument [all...] |
H A D | ExpatParser.java | 122 * @param uri namespace URI of element or "" if namespace processing is 131 /*package*/ void startElement(String uri, String localName, String qName, argument 144 uri, localName, qName, this.attributes); 152 /*package*/ void endElement(String uri, String localName, String qName) argument 156 contentHandler.endElement(uri, localName, qName); 188 /*package*/ void startNamespace(String prefix, String uri) argument 192 contentHandler.startPrefixMapping(prefix, uri); 774 void startElement(String uri, String localName, String qName, argument 781 super.startElement(uri, localName, qName, attributePointer, 787 void endElement(String uri, Strin argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | NodeImpl.java | 315 String uri = element.getAttributeNS( 320 if (uri == null || uri.isEmpty()) { 325 if (new URI(uri).isAbsolute()) { 326 return uri; 336 return new URI(parentUri).resolve(uri).toString(); 377 private String sanitizeUri(String uri) { argument 378 if (uri == null || uri.length() == 0) { 382 return new URI(uri) 541 isPrefixMappedToUri(String prefix, String uri) argument [all...] |
/libcore/luni/src/main/java/org/w3c/dom/ls/ |
H A D | LSParser.java | 97 * <code>"pi-base-uri-not-preserved" [warning]</code></dt> 323 * @param uri The location of the XML document to be read. 339 public Document parseURI(String uri) argument
|
H A D | LSSerializer.java | 400 * and <code>LSOutput.systemId</code> set to the <code>uri</code> 403 * @param uri The URI to write to. 416 String uri) 415 writeToURI(Node nodeArg, String uri) argument
|
/libcore/luni/src/main/java/org/xml/sax/ |
H A D | Attributes.java | 180 * @param uri The Namespace URI, or the empty string if 186 public int getIndex (String uri, String localName); 205 * @param uri The Namespace URI, or the empty String if the 212 public abstract String getType (String uri, String localName); 235 * @param uri The Namespace URI, or the empty String if the 241 public abstract String getValue (String uri, String localName); 184 getIndex(String uri, String localName) argument 210 getType(String uri, String localName) argument 239 getValue(String uri, String localName) argument
|
H A D | ContentHandler.java | 163 * @param uri the Namespace URI the prefix is mapped to 169 public void startPrefixMapping (String prefix, String uri) argument 239 * @param uri the Namespace URI, or the empty string if the 257 public void startElement (String uri, String localName, argument 272 * @param uri the Namespace URI, or the empty string if the 283 public void endElement (String uri, String localName, argument
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
H A D | Attributes2.java | 80 * @param uri The Namespace URI, or the empty string if 88 public boolean isDeclared (String uri, String localName); argument 111 * @param uri The Namespace URI, or the empty string if 119 public boolean isSpecified (String uri, String localName); argument
|
H A D | Attributes2Impl.java | 95 public boolean isDeclared (String uri, String localName) argument 97 int index = getIndex (uri, localName); 102 + ", namespace=" + uri); 142 * @param uri The Namespace URI, or the empty string if 149 public boolean isSpecified (String uri, String localName) argument 151 int index = getIndex (uri, localName); 156 + ", namespace=" + uri); 228 * @param uri The Namespace URI, or the empty string if 240 public void addAttribute (String uri, String localName, String qName, argument 243 super.addAttribute (uri, localNam [all...] |
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
H A D | AttributesImpl.java | 195 * @param uri The attribute's Namespace URI, or the empty 201 public int getIndex (String uri, String localName) 205 if (data[i].equals(uri) && data[i+1].equals(localName)) { 235 * @param uri The Namespace URI, or the empty string for a name 242 public String getType (String uri, String localName) 246 if (data[i].equals(uri) && data[i+1].equals(localName)) { 277 * @param uri The Namespace URI, or the empty string for a name 284 public String getValue (String uri, String localName) 288 if (data[i].equals(uri) && data[i+1].equals(localName)) { 372 * @param uri Th 199 getIndex(String uri, String localName) argument 240 getType(String uri, String localName) argument 282 getValue(String uri, String localName) argument 379 addAttribute(String uri, String localName, String qName, String type, String value) argument 413 setAttribute(int index, String uri, String localName, String qName, String type, String value) argument 466 setURI(int index, String uri) argument [all...] |
H A D | DefaultHandler.java | 219 * @param uri The Namespace URI mapped to the prefix. 224 public void startPrefixMapping (String prefix, String uri) 258 * @param uri The Namespace URI, or the empty string if the 273 public void startElement (String uri, String localName, 289 * @param uri The Namespace URI, or the empty string if the 301 public void endElement (String uri, String localName, String qName) 221 startPrefixMapping(String prefix, String uri) argument 270 startElement(String uri, String localName, String qName, Attributes attributes) argument 298 endElement(String uri, String localName, String qName) argument
|
H A D | NamespaceSupport.java | 289 * @param uri The Namespace URI to associate with the prefix. 296 public boolean declarePrefix (String prefix, String uri) 301 currentContext.declarePrefix(prefix, uri); 412 * @param uri the namespace URI 419 public String getPrefix (String uri) 421 return currentContext.getPrefix(uri); 442 * @param uri The Namespace URI. 448 public Enumeration getPrefixes(String uri) { 453 if (uri.equals(getURI(prefix))) { 600 * @param uri Th 292 declarePrefix(String prefix, String uri) argument 415 getPrefix(String uri) argument 444 getPrefixes(String uri) argument 597 declarePrefix(String prefix, String uri) argument 738 getPrefix(String uri) argument [all...] |
H A D | ParserAdapter.java | 559 // yet the uri isn't null. 963 * @param uri The Namespace URI or the empty string. argument 968 public int getIndex (String uri, String localName) 996 * @param uri The Namespace URI 1000 public String getType (String uri, String localName) 1021 * @param uri The Namespace URI 1025 public String getValue (String uri, String localName) 995 getType(String uri, String localName) argument 1020 getValue(String uri, String localName) argument
|
H A D | XMLFilterImpl.java | 487 * @param uri The Namespace URI. 491 public void startPrefixMapping (String prefix, String uri) 495 contentHandler.startPrefixMapping(prefix, uri); 519 * @param uri The element's Namespace URI, or the empty string. 527 public void startElement (String uri, String localName, String qName, 532 contentHandler.startElement(uri, localName, qName, atts); 540 * @param uri The element's Namespace URI, or the empty string. 547 public void endElement (String uri, String localName, String qName) 551 contentHandler.endElement(uri, localName, qName); 485 startPrefixMapping(String prefix, String uri) argument 521 startElement(String uri, String localName, String qName, Attributes atts) argument 541 endElement(String uri, String localName, String qName) argument
|
H A D | XMLReaderAdapter.java | 299 * @param uri The Namespace URI being mapped to. 302 public void startPrefixMapping (String prefix, String uri) 321 * @param uri The Namespace URI. 329 public void startElement (String uri, String localName, 343 * @param uri The Namespace URI. 350 public void endElement (String uri, String localName, 300 startPrefixMapping(String prefix, String uri) argument 327 startElement(String uri, String localName, String qName, Attributes atts) argument 348 endElement(String uri, String localName, String qName) argument
|
/libcore/luni/src/main/native/ |
H A D | org_apache_harmony_xml_ExpatParser.cpp | 498 jstring uri() { function in class:ExpatElementName 528 bool matches(const char* uri, const char* localName) { argument 529 return strcmp(uri, mUri) == 0 && strcmp(localName, mLocalName) == 0; 565 * "uri|localName|prefix" (example: "http://www.w3.org/1999/xhtml|h1|html") 566 * "uri|localName" (example: "http://www.w3.org/1999/xhtml|h1") 580 if (c != NULL) { // input of the form "uri|localName|prefix" 584 } else if (b != NULL) { // input of the form "uri|localName" 605 * @param elementName "uri|localName" or "localName" for the current element 607 * names, attribute names follow the format "uri|localName" or "localName". 627 jstring uri local 659 jstring uri = parsingContext->stringStack.pop(); local 696 startNamespace(void* data, const char* prefix, const char* uri) argument 1181 ExpatAttributes_getIndex(JNIEnv* env, jobject, jlong attributePointer, jstring uri, jstring localName) argument 1228 ExpatAttributes_getValue(JNIEnv* env, jobject clazz, jlong attributePointer, jstring uri, jstring localName) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | CookiesTest.java | 315 @Override public Map<String, List<String>> get(URI uri, 366 @Override public Map<String, List<String>> get(URI uri, 577 public void add(URI uri, HttpCookie cookie) { argument 590 public List<HttpCookie> get(URI uri) { argument 602 public boolean remove(URI uri, HttpCookie cookie) { argument
|
H A D | OldAndroidURITest.java | 32 URI uri = new URI(str); 33 assertEquals(host, uri.getHost()); 34 assertEquals(path, uri.getPath()); 35 assertEquals(absolute, uri.isAbsolute()); 44 private static void resolve(String base, String uri, String expected) { argument 46 URI resolved = b.resolve(uri);
|