Class ArchPaths
java.lang.Object
org.epics.archiverappliance.utils.nio.ArchPaths
- All Implemented Interfaces:
Closeable,AutoCloseable
This is a replacement for NIO Paths that caters to our syntax rules.
Normal file system paths are all similar to linux file names.
The compressed use the jar:file:syntax.
For example,
jar:file:///ziptest/alltext.zip!/SomeTextFile.txt- Author:
- luofeng, mshankar
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getGlobSearchParams(PVPath pvPath, String extension) static SeekableByteChannelnewByteChannel(Path path, OpenOption... options) Returns a seekable byte channel.
-
Field Details
-
ZIP_PREFIX
- See Also:
-
TAR_SCHEME
- See Also:
-
-
Constructor Details
-
ArchPaths
public ArchPaths()
-
-
Method Details
-
newByteChannel
public static SeekableByteChannel newByteChannel(Path path, OpenOption... options) throws IOException Returns a seekable byte channel. In case of file systems, this is the raw SeekableByteChannel as returned by the provider. In case of zip files, we wrap the InputStream using WrappedSeekableByteChannel (which is a read only byte channel for now).- Parameters:
path- Pathoptions- OpenOption- Returns:
- a new seekabel byte channel
- Throws:
IOException-
-
get
- Throws:
IOException
-
get
- Throws:
IOException
-
getGlobSearchParams
public ArchPaths.GlobSearchParams getGlobSearchParams(PVPath pvPath, String extension) throws IOException - Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-