@Test public void getPathFirstWithMultiplesPaths() { assertEquals(fs.getPath("/bucket/path/to/file"), fs.getPath("/bucket/path/to/file")); assertNotEquals(fs.getPath("/bucket/path/other/file"), fs.getPath("/bucket/path/to/file")); assertEquals(fs.getPath("dir/path/to/file"), fs.getPath("dir/path/to/file")); assertNotEquals(fs.getPath("dir/path/other/file"), fs.getPath("dir/path/to/file")); }
@Override public S3Path getPath(String first, String... more) { if (more.length == 0) { return new S3Path(this, first); } return new S3Path(this, first, more); }
S3FileSystem extends FileSystem implements Comparable<S3FileSystem> { @Override public S3Path getPath(String first, String... more) { if (more.length == 0) { return new S3Path(this, first); } return new S3Path(this, first, more); } }
S3FileSystem extends FileSystem implements Comparable<S3FileSystem> { @Override public S3Path getPath(String first, String... more) { if (more.length == 0) { return new S3Path(this, first); } return new S3Path(this, first, more); } S3FileSystem(S3FileSystemProvider provider, String key, AmazonS3 client, String endpoint); }
S3FileSystem extends FileSystem implements Comparable<S3FileSystem> { @Override public S3Path getPath(String first, String... more) { if (more.length == 0) { return new S3Path(this, first); } return new S3Path(this, first, more); } 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> { @Override public S3Path getPath(String first, String... more) { if (more.length == 0) { return new S3Path(this, first); } return new S3Path(this, first, more); } 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();  }