Class XZCompressedLocalFileStorage
-
- All Implemented Interfaces:
-
org.ossreviewtoolkit.utils.ort.storage.FileStorage
public final class XZCompressedLocalFileStorage extends LocalFileStorage
A FileStorage that stores compressed files in a directory of the local file system.
-
-
Constructor Summary
Constructors Constructor Description XZCompressedLocalFileStorage(File directory)
-
Method Summary
Modifier and Type Method Description StringtransformPath(String path)Return the internally used path, which might differ from the provided path e.g. InputStreamread(String path)Read the file at path. -
-
Constructor Detail
-
XZCompressedLocalFileStorage
XZCompressedLocalFileStorage(File directory)
-
-
Method Detail
-
transformPath
String transformPath(String path)
Return the internally used path, which might differ from the provided path e.g. in case a suffix is added to denote a compression scheme.
-
read
InputStream read(String path)
Read the file at path. It is the caller's responsibility to close the returned InputStream after consuming it.
-
-
-
-