| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SEPARATOR |
| Constructor and Description |
|---|
S3Path(S3FileSystem fileSystem,
String first,
String... more)
Build an S3Path from path segments.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String PATH_SEPARATOR
public S3Path(S3FileSystem fileSystem, String first, String... more)
fileSystem - S3FileSystemfirst - should be start with a '/' and is the bucket namemore - directories and filespublic S3FileStore getFileStore()
public String getKey()
public S3FileSystem getFileSystem()
getFileSystem in interface Pathpublic boolean isAbsolute()
isAbsolute in interface Pathpublic Path getFileName()
getFileName in interface Pathpublic int getNameCount()
getNameCount in interface Pathpublic Path subpath(int beginIndex, int endIndex)
public boolean startsWith(Path other)
startsWith in interface Pathpublic boolean startsWith(String path)
startsWith in interface Pathpublic Path resolveSibling(Path other)
resolveSibling in interface Pathpublic Path resolveSibling(String other)
resolveSibling in interface Pathpublic Path relativize(Path other)
relativize in interface Pathpublic URI toUri()
public URL toURL()
AmazonS3.getUrl(String, String),
for unique resource identifierpublic Path toAbsolutePath()
toAbsolutePath in interface Pathpublic Path toRealPath(LinkOption... options) throws IOException
toRealPath in interface PathIOExceptionpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic int compareTo(Path other)
compareTo in interface Comparable<Path>compareTo in interface Pathpublic String toString()
public boolean equals(Object o)
public int hashCode()
public S3BasicFileAttributes getFileAttributes()
public void setFileAttributes(S3BasicFileAttributes fileAttributes)
Copyright © 2018. All rights reserved.