@Test public void urlWithSpaceCharacters() throws IOException { String fileName = "beta gaming.png"; String expected = "https: AmazonS3 amazonS3Client = AmazonS3ClientBuilder.standard() .withRegion(Regions.EU_WEST_1) .build(); S3FileSystem s3FileSystem = new S3FileSystem(null, null, amazonS3Client, "mirror"); S3Path path = new S3Path(s3FileSystem, fileName); String url = amazonS3Client.getUrl("bucket", path.getKey()).toString(); assertEquals(expected, url); }
public String getKey() { return key; }
S3FileSystem extends FileSystem implements Comparable<S3FileSystem> { public String getKey() { return key; } }
S3FileSystem extends FileSystem implements Comparable<S3FileSystem> { public String getKey() { return key; } S3FileSystem(S3FileSystemProvider provider, String key, AmazonS3 client, String endpoint); }
S3FileSystem extends FileSystem implements Comparable<S3FileSystem> { public String getKey() { return key; } S3FileSystem(S3FileSystemProvider provider, String key, AmazonS3 client, String endpoint); @Override S3FileSystemProvider provider(); String getKey(); @Override void close(); @Override boolean isOpen(); @Override boolean isReadOnly(); @Override String getSeparator(); @Override Iterable<Path> getRootDirectories(); @Override Iterable<FileStore> getFileStores(); @Override Set<String> supportedFileAttributeViews(); @Override S3Path getPath(String first, String... more); @Override PathMatcher getPathMatcher(String syntaxAndPattern); @Override UserPrincipalLookupService getUserPrincipalLookupService(); @Override WatchService newWatchService(); AmazonS3 getClient(); String getEndpoint(); String[] key2Parts(String keyParts); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(S3FileSystem o); int getCache(); }
S3FileSystem extends FileSystem implements Comparable<S3FileSystem> { public String getKey() { return key; } S3FileSystem(S3FileSystemProvider provider, String key, AmazonS3 client, String endpoint); @Override S3FileSystemProvider provider(); String getKey(); @Override void close(); @Override boolean isOpen(); @Override boolean isReadOnly(); @Override String getSeparator(); @Override Iterable<Path> getRootDirectories(); @Override Iterable<FileStore> getFileStores(); @Override Set<String> supportedFileAttributeViews(); @Override S3Path getPath(String first, String... more); @Override PathMatcher getPathMatcher(String syntaxAndPattern); @Override UserPrincipalLookupService getUserPrincipalLookupService(); @Override WatchService newWatchService(); AmazonS3 getClient(); String getEndpoint(); String[] key2Parts(String keyParts); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(S3FileSystem o); int getCache();  }