Java URI Value Check isFile(URI uri)

Here you can find the source of isFile(URI uri)

Description

is File

License

Open Source License

Declaration

private static boolean isFile(URI uri) 

Method Source Code


//package com.java2s;

import java.net.*;

public class Main {
    private static boolean isFile(URI uri) {
        return "file".equals(uri.getScheme()) || !uri.isAbsolute();
    }/*from w  w w.j  a v  a2 s.  co m*/
}

Related

  1. isDefaultPort(URI uri)
  2. isDirectory(URI orig)
  3. isExtensionUri(final URI uri)
  4. isFile(final URI uri)
  5. isFile(URI uri)
  6. isFileSystemAvailable(File file, URI topLevelResource)
  7. isFileUri(String uri)
  8. isFileURI(URI uri)
  9. isFileURI(URI uri)