@Test public void test_isFileUri() throws Exception { assertThat(isFileUri(HTTP_URI), is(false)); assertThat(isFileUri(HTTPS_URI), is(false)); assertThat(isFileUri(FILE_ABS_URI), is(true)); assertThat(isFileUri(FILE_REL_URI), is(true)); }
public static boolean isFileUri(final URI uri) { return "file".equals(uri.getScheme()); }
UriUtil { public static boolean isFileUri(final URI uri) { return "file".equals(uri.getScheme()); } }
UriUtil { public static boolean isFileUri(final URI uri) { return "file".equals(uri.getScheme()); } private  UriUtil(); }
UriUtil { public static boolean isFileUri(final URI uri) { return "file".equals(uri.getScheme()); } private  UriUtil(); static URI toUri(final String s); static boolean isFileUri(final URI uri); static Optional<String> getLastSegment(final URI uri); static String getLastSegmentOrHost(final URI uri); static String getParent(final URI uri); static String getPath(final URI uri); }
UriUtil { public static boolean isFileUri(final URI uri) { return "file".equals(uri.getScheme()); } private  UriUtil(); static URI toUri(final String s); static boolean isFileUri(final URI uri); static Optional<String> getLastSegment(final URI uri); static String getLastSegmentOrHost(final URI uri); static String getParent(final URI uri); static String getPath(final URI uri);  }