Class XZCompressedLocalFileStorage

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final File directory
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String transformPath(String path) Return the internally used path, which might differ from the provided path e.g.
      XZCompressorInputStream read(String path) Read the file at path.
      • Methods inherited from class org.ossreviewtoolkit.utils.ort.storage.LocalFileStorage

        delete, exists, getDirectory, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

         XZCompressorInputStream read(String path)

        Read the file at path. It is the caller's responsibility to close the returned InputStream after consuming it.