Class ArchiveStreamReader.Options

java.lang.Object
com.yahoo.compress.ArchiveStreamReader.Options
Enclosing class:
ArchiveStreamReader

public static class ArchiveStreamReader.Options extends Object
Options for reading entries of an archive
  • Method Details

    • standard

      public static ArchiveStreamReader.Options standard()
      Returns the standard set of read options
    • maxSize

      public ArchiveStreamReader.Options maxSize(long size)
      Set the maximum total size of decompressed entries. Default is 8 GB
    • maxEntrySize

      public ArchiveStreamReader.Options maxEntrySize(long size)
      Set the maximum size a decompressed entry. Default is no limit
    • maxEntries

      public ArchiveStreamReader.Options maxEntries(long count)
      Set the maximum number of entries to decompress. Default is no limit
    • truncateEntry

      public ArchiveStreamReader.Options truncateEntry(boolean truncate)
      Set whether to truncate the content of an entry exceeding the configured size limit, instead of throwing. Default is to throw.
    • pathPredicate

      public ArchiveStreamReader.Options pathPredicate(Predicate<String> predicate)
      Set a predicate that an entry path must match in order to be extracted. Default is to extract all entries
    • allowDotSegment

      public ArchiveStreamReader.Options allowDotSegment(boolean allow)
      Set whether to allow single-dot segments in entry paths. Default is false