Class PackingOptions
java.lang.Object
org.apache.commons.compress.harmony.pack200.PackingOptions
Manages the various options available for pack200.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClassAttributeAction
(String attributeName, String action) void
addCodeAttributeAction
(String attributeName, String action) void
addFieldAttributeAction
(String attributeName, String action) void
addMethodAttributeAction
(String attributeName, String action) void
addPassFile
(String passFileName) Tell the compressor to pass the file with the given name, or if the name is a directory name all files under that directory will be passed.int
long
org.objectweb.asm.Attribute[]
boolean
isGzip()
boolean
boolean
boolean
isPassFile
(String passFileName) boolean
boolean
void
removePassFile
(String passFileName) void
setDeflateHint
(String deflateHint) void
setEffort
(int effort) Sets the compression effort level (0-9, equivalent to -E command line option)void
setGzip
(boolean gzip) void
setKeepFileOrder
(boolean keepFileOrder) void
setLogFile
(String logFile) void
setModificationTime
(String modificationTime) void
setQuiet
(boolean quiet) void
setSegmentLimit
(long segmentLimit) Sets the segment limit (equivalent to -S command line option)void
setStripDebug
(boolean stripDebug) Sets strip debug attributes.void
setUnknownAttributeAction
(String unknownAttributeAction) Sets the compressor behavior when an unknown attribute is encountered.void
setVerbose
(boolean verbose)
-
Field Details
-
SEGMENT_LIMIT
- See Also:
-
STRIP
- See Also:
-
ERROR
- See Also:
-
PASS
- See Also:
-
KEEP
- See Also:
-
-
Constructor Details
-
PackingOptions
public PackingOptions()
-
-
Method Details
-
addClassAttributeAction
-
addCodeAttributeAction
-
addFieldAttributeAction
-
addMethodAttributeAction
-
addPassFile
Tell the compressor to pass the file with the given name, or if the name is a directory name all files under that directory will be passed.- Parameters:
passFileName
- the file name
-
getDeflateHint
-
getEffort
-
getLogFile
-
getModificationTime
-
getSegmentLimit
-
getUnknownAttributeAction
-
getUnknownAttributePrototypes
-
getUnknownClassAttributeAction
-
getUnknownCodeAttributeAction
-
getUnknownFieldAttributeAction
-
getUnknownMethodAttributeAction
-
isGzip
-
isKeepDeflateHint
-
isKeepFileOrder
-
isPassFile
-
isStripDebug
-
isVerbose
-
removePassFile
-
setDeflateHint
-
setEffort
Sets the compression effort level (0-9, equivalent to -E command line option)- Parameters:
effort
- the compression effort level, 0-9.
-
setGzip
-
setKeepFileOrder
-
setLogFile
-
setModificationTime
-
setQuiet
-
setSegmentLimit
Sets the segment limit (equivalent to -S command line option)- Parameters:
segmentLimit
- the limit in bytes
-
setStripDebug
Sets strip debug attributes. If true, all debug attributes (i.e. LineNumberTable, SourceFile, LocalVariableTable and LocalVariableTypeTable attributes) are stripped when reading the input class files and not included in the output archive.- Parameters:
stripDebug
- If true, all debug attributes.
-
setUnknownAttributeAction
Sets the compressor behavior when an unknown attribute is encountered.- Parameters:
unknownAttributeAction
- the action to perform
-
setVerbose
-