@Test public void testCreateUriFromFileUri() throws IOException { URI baseUri = URI.createFileURI(currentTempFile().getAbsolutePath()); URI uri = context().createUri(baseUri); assertThat(uri.scheme()).isEqualTo(context().uriScheme()); }
@Nonnull protected final String scheme() { return scheme.get(); }
AbstractUriFactory implements UriFactory { @Nonnull protected final String scheme() { return scheme.get(); } }
AbstractUriFactory implements UriFactory { @Nonnull protected final String scheme() { return scheme.get(); } protected  AbstractUriFactory(boolean supportsLocal, boolean supportsRemote); protected  AbstractUriFactory(String scheme, boolean supportsLocal, boolean supportsRemote); }
AbstractUriFactory implements UriFactory { @Nonnull protected final String scheme() { return scheme.get(); } protected  AbstractUriFactory(boolean supportsLocal, boolean supportsRemote); protected  AbstractUriFactory(String scheme, boolean supportsLocal, boolean supportsRemote); @Nonnull @Override URI createLocalUri(URI uri); @Nonnull @Override URI createLocalUri(File file); @Nonnull @Override URI createLocalUri(String filePath); @Nonnull @Override URI createRemoteUri(String host, int port, URI model); @Nonnull @Override URI createRemoteUri(String host, int port, String model); @Nonnull @Override URI createRemoteUri(InetAddress host, int port, URI model); @Nonnull @Override URI createRemoteUri(InetAddress host, int port, String model); }
AbstractUriFactory implements UriFactory { @Nonnull protected final String scheme() { return scheme.get(); } protected  AbstractUriFactory(boolean supportsLocal, boolean supportsRemote); protected  AbstractUriFactory(String scheme, boolean supportsLocal, boolean supportsRemote); @Nonnull @Override URI createLocalUri(URI uri); @Nonnull @Override URI createLocalUri(File file); @Nonnull @Override URI createLocalUri(String filePath); @Nonnull @Override URI createRemoteUri(String host, int port, URI model); @Nonnull @Override URI createRemoteUri(String host, int port, String model); @Nonnull @Override URI createRemoteUri(InetAddress host, int port, URI model); @Nonnull @Override URI createRemoteUri(InetAddress host, int port, String model);  }