List of utility methods to do URI Value Check
boolean | isIRODSURIScheme(final URI irodsURI) Test to see if the URI is of the iRODS scheme "irods://". return SCHEME.equals(irodsURI.getScheme());
|
boolean | isJar(final URI uri) Is the URI representing a JAR file?? if ((uri != null) && (uri.getScheme() != null)) { return uri.getScheme().equalsIgnoreCase("jar"); return false; |
boolean | isJarFile(final URI uri) is Jar File return JAR_FILE_ENDING.equals(uri.getScheme());
|
boolean | isLocal(final URI uri) Check if the data pointed by given URL is inside or outside current fileSystem. return "file".equalsIgnoreCase(uri.getScheme()); |
boolean | isLocal(final URI uri) is Local try { final String hostName = uri.getHost(); final InetAddress address = InetAddress.getByName(hostName); NetworkInterface nic; if (address.isLinkLocalAddress()) { Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); nic = null; while (interfaces.hasMoreElements() && nic == null) { ... |
boolean | isLocalFile(URI uri) Checks if the URI points to the local file. if (!uri.isAbsolute()) return false; if (uri.isOpaque()) return false; if (!"file".equalsIgnoreCase(uri.getScheme())) return false; if (uri.getAuthority() != null) return false; ... |
boolean | isLocalFile(URI uri) Tests to see if a URI represents a local file. if (uri == null) { return false; String scheme = uri.getScheme(); return scheme != null && FILE_URI_SCHEME.equals(scheme.toLowerCase()); |
boolean | isLocalUri(String uriString) is Local Uri URI uri = new URI(uriString); if (uri.getScheme().equalsIgnoreCase("file")) { return true; return false; |
boolean | isLocalURI(URI uri) is Local URI if (uri == null || uri.isOpaque() || !uri.isAbsolute() || uri.getHost() == null) { throw new IllegalArgumentException(); InetAddress host = InetAddress.getByName(uri.getHost()); return host.isLoopbackAddress() || host.isAnyLocalAddress() || NetworkInterface.getByInetAddress(host) != null; |
Boolean | isModuleURI(URI uri) is Module URI return MODULE_SCHEME.equalsIgnoreCase(uri.getScheme());
|