Package com.yahoo.compress
Class ArchiveStreamReader.Options
java.lang.Object
com.yahoo.compress.ArchiveStreamReader.Options
- Enclosing class:
- ArchiveStreamReader
Options for reading entries of an archive
-
Method Summary
Modifier and TypeMethodDescriptionallowDotSegment
(boolean allow) Set whether to allow single-dot segments in entry paths.maxEntries
(long count) Set the maximum number of entries to decompress.maxEntrySize
(long size) Set the maximum size a decompressed entry.maxSize
(long size) Set the maximum total size of decompressed entries.pathPredicate
(Predicate<String> predicate) Set a predicate that an entry path must match in order to be extracted.static ArchiveStreamReader.Options
standard()
Returns the standard set of read optionstruncateEntry
(boolean truncate) Set whether to truncate the content of an entry exceeding the configured size limit, instead of throwing.
-
Method Details
-
standard
Returns the standard set of read options -
maxSize
Set the maximum total size of decompressed entries. Default is 8 GB -
maxEntrySize
Set the maximum size a decompressed entry. Default is no limit -
maxEntries
Set the maximum number of entries to decompress. Default is no limit -
truncateEntry
Set whether to truncate the content of an entry exceeding the configured size limit, instead of throwing. Default is to throw. -
pathPredicate
Set a predicate that an entry path must match in order to be extracted. Default is to extract all entries -
allowDotSegment
Set whether to allow single-dot segments in entry paths. Default is false
-