Searched refs:scheme (Results 1 - 14 of 14) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/file/
H A DPaths.java92 * URI {@link URI#getScheme scheme} of the given URI. URI schemes are
97 * <p> In the case of the default provider, identified by the URI scheme
126 * the URI's scheme component is not installed
132 String scheme = uri.getScheme();
133 if (scheme == null)
134 throw new IllegalArgumentException("Missing scheme");
137 if (scheme.equalsIgnoreCase("file"))
142 if (provider.getScheme().equalsIgnoreCase(scheme)) {
147 throw new FileSystemNotFoundException("Provider \"" + scheme + "\" not installed");
H A DFileSystems.java43 * provider, identified by the URI scheme "file", creates the {@link FileSystem}
64 * getScheme} returns the same URI scheme of a provider that was previously
125 throw new Error("Default provider must use scheme 'file'");
152 * names of concrete provider classes identified by the URI scheme
158 * If this process fails or a provider's scheme is not equal to {@code "file"}
160 * without regard to case but for the default provider, the scheme is
184 * {@link URI#getScheme scheme} of the given URI. URI schemes are compared
212 * if a provider supporting the URI scheme is not installed
218 String scheme = uri.getScheme();
220 if (scheme
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTest.java132 public String getResourceURI(String href, String scheme, String contentType) throws argument
134 if (scheme == null) {
135 throw new NullPointerException("scheme");
137 if ("file".equals(scheme)) {
140 if ("http".equals(scheme)) {
153 throw new DOMTestLoadException(new Exception("Unrecognized URI scheme " +
154 scheme));
157 public String createTempURI(String scheme) throws DOMTestLoadException { argument
158 if (scheme == null) {
159 throw new NullPointerException("scheme");
[all...]
H A DDOMTestInnerClass.java133 public void assertURIEquals(String assertID, String scheme, String path, argument
137 test.assertURIEquals(assertID, scheme, path, host, file, name, query,
H A DDOMTestCase.java646 * @param scheme
647 * Expected scheme, for example, "file". If null, scheme is
672 String scheme,
722 if (scheme != null) {
723 assertEquals(assertID, scheme, actualScheme);
670 assertURIEquals( String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
/libcore/ojluni/src/main/java/java/net/
H A DAuthenticator.java148 * @param scheme The authentication scheme
165 String scheme) {
184 a.requestingScheme = scheme;
208 * @param scheme The authentication scheme
227 String scheme) {
247 a.requestingScheme = scheme;
269 * @param scheme The authentication scheme
160 requestPasswordAuthentication( InetAddress addr, int port, String protocol, String prompt, String scheme) argument
221 requestPasswordAuthentication( String host, InetAddress addr, int port, String protocol, String prompt, String scheme) argument
286 requestPasswordAuthentication( String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, RequestorType reqType) argument
[all...]
H A DURI.java70 * [<i>scheme</i><b>{@code :}</b>]<i>scheme-specific-part</i>[<b>{@code #}</b><i>fragment</i>]
76 * <p> An <i>absolute</i> URI specifies a scheme; a URI that is not absolute is
80 * <p> An <i>opaque</i> URI is an absolute URI whose scheme-specific part does
91 * scheme-specific part begins with a slash character, or a relative URI, that
92 * is, a URI that does not specify a scheme. Some examples of hierarchical
105 * [<i>scheme</i><b>{@code :}</b>][<b>{@code //}</b><i>authority</i>][<i>path</i>][<b>{@code ?}</b><i>query</i>][<b>{@code #}</b><i>fragment</i>]
110 * scheme-specific part of a hierarchical URI consists of the characters
111 * between the scheme and fragment components.
133 * <blockquote><table summary="Describes the components of a URI:scheme,schem
473 private transient String scheme; // null ==> relative URI field in class:URI
659 URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) argument
732 URI(String scheme, String authority, String path, String query, String fragment) argument
766 URI(String scheme, String host, String path, String fragment) argument
809 URI(String scheme, String ssp, String fragment) argument
1812 checkPath(String s, String scheme, String path) argument
1921 toString(String scheme, String opaquePart, String authority, String userInfo, String host, int port, String path, String query, String fragment) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DParseUtil.java310 private static URI createURI(String scheme, argument
316 String s = toString(scheme, null,
319 checkPath(s, scheme, path);
323 private static String toString(String scheme, argument
334 if (scheme != null) {
335 sb.append(scheme);
527 // If a scheme is given then the path, if given, must be absolute
529 private static void checkPath(String s, String scheme, String path) argument
532 if (scheme != null) {
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDOMTestCase.java102 public void assertURIEquals(String assertID, String scheme, String path, argument
146 if (scheme != null) {
147 assertEquals(assertID, scheme, actualScheme);
/libcore/ojluni/src/main/java/java/nio/file/spi/
H A DFileSystemProvider.java47 * identified by a {@code URI} {@link #getScheme() scheme}. The default provider
48 * is identified by the URI scheme "file". It creates the {@link FileSystem} that
59 * file system is identified by a {@code URI} where the URI's scheme matches
60 * the provider's {@link #getScheme scheme}. The default file system, for example,
120 String scheme = provider.getScheme();
123 if (!scheme.equalsIgnoreCase("file")) {
126 if (p.getScheme().equalsIgnoreCase(scheme)) {
183 * Returns the URI scheme that identifies this provider.
185 * @return The URI scheme
195 * scheme equa
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixUriUtils.java49 String scheme = uri.getScheme();
50 if ((scheme == null) || !scheme.equalsIgnoreCase("file"))
51 throw new IllegalArgumentException("URI scheme is not \"file\"");
/libcore/ojluni/src/main/java/java/io/
H A DFile.java398 * An absolute, hierarchical URI with a scheme equal to
419 String scheme = uri.getScheme();
420 if ((scheme == null) || !scheme.equalsIgnoreCase("file"))
421 throw new IllegalArgumentException("URI scheme is not \"file\"");
707 * @return An absolute, hierarchical URI with a scheme equal to
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DURITest.java125 "ht123-+tp://www.google.com:80/test", // legal chars in scheme
161 "mailto:user^name@fklkf.com" // invalid char in scheme
203 // scheme validation
204 "a scheme://reg/", // illegal char
205 "1scheme://reg/", // non alpha char as 1st char
298 // scheme specific part can not be null
306 // scheme needs to start with an alpha char
308 uri = new URI("3scheme", "//authority/path", "fragment");
314 // scheme can not be empty string
359 // check for URISyntaxException for invalid scheme
400 construct1(String scheme, String userinfo, String host, int port, String path, String query, String fragment) argument
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java2136 public static final int scheme = 0; field in class:R

Completed in 486 milliseconds