public class SegmentOptions extends Object
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 and Description |
---|
SegmentOptions(int options)
Creates a new segment options with the given integer value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasAllCodeFlags() |
boolean |
hasArchiveFileCounts() |
boolean |
hasClassFlagsHi() |
boolean |
hasCodeFlagsHi() |
boolean |
hasCPNumberCounts() |
boolean |
hasFieldFlagsHi() |
boolean |
hasFileModtime() |
boolean |
hasFileOptions() |
boolean |
hasFileSizeHi() |
boolean |
hasMethodFlagsHi() |
boolean |
hasSpecialFormats() |
boolean |
shouldDeflate() |
public SegmentOptions(int options) throws Pack200Exception
options
- the integer value to use as the flagsPack200Exception
- if an unused bit (bit 3 or bit 13+) is non-zeropublic boolean hasAllCodeFlags()
public boolean hasArchiveFileCounts()
public boolean hasClassFlagsHi()
public boolean hasCodeFlagsHi()
public boolean hasCPNumberCounts()
public boolean hasFieldFlagsHi()
public boolean hasFileModtime()
public boolean hasFileOptions()
public boolean hasFileSizeHi()
public boolean hasMethodFlagsHi()
public boolean hasSpecialFormats()
public boolean shouldDeflate()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.