Class SegmentOptions
java.lang.Object
org.apache.commons.compress.harmony.unpack200.SegmentOptions
Stores the combinations of bit flags that can be used in the segment header options. Whilst this could be defined in
Segment
, it's cleaner to pull it
out into a separate class, not least because methods can then be used to determine the semantic meaning of the flags. In languages with a pre-processor,
these may be defined by macros that do bitflag manipulation instead.-
Constructor Summary
ConstructorDescriptionSegmentOptions
(int options) Creates a new segment options with the given integer value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Constructor Details
-
SegmentOptions
Creates a new segment options with the given integer value.- Parameters:
options
- the integer value to use as the flags- Throws:
Pack200Exception
- if an unused bit (bit 3 or bit 13+) is non-zero
-
-
Method Details
-
hasAllCodeFlags
-
hasArchiveFileCounts
-
hasClassFlagsHi
-
hasCodeFlagsHi
-
hasCPNumberCounts
-
hasFieldFlagsHi
-
hasFileModtime
-
hasFileOptions
-
hasFileSizeHi
-
hasMethodFlagsHi
-
hasSpecialFormats
-
shouldDeflate
-