Class TarPath
java.lang.Object
org.epics.archiverappliance.utils.nio.tar.TarPath
A TarPath consists of the tar file ( represented by the fileSystem ) and the entry in the tar file.
A null tarEntry acts as a Path for the tar file itself.
We don't really maintain directories in the tar file; the tar file is a two level file system
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintboolean<A extends BasicFileAttributes>
AgetBasicFileAttributes(Class<A> type, LinkOption... options) getName(int index) intgetRoot()booleanregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize(Path other) booleanstartsWith(Path other) subpath(int beginIndex, int endIndex) toRealPath(LinkOption... options) toString()toUri()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.nio.file.Path
endsWith, equals, hashCode, iterator, register, resolve, resolveSibling, resolveSibling, startsWith, toFile
-
Constructor Details
-
TarPath
-
-
Method Details
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getName
-
subpath
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
normalize
-
resolve
-
relativize
- Specified by:
relativizein interfacePath
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath- Throws:
IOException
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
getTarEntry
-
toString
-
getBasicFileAttributes
public <A extends BasicFileAttributes> A getBasicFileAttributes(Class<A> type, LinkOption... options) throws IOException - Throws:
IOException
-