Class PackingOptions
java.lang.Object
org.apache.commons.compress.harmony.pack200.PackingOptions
Manages the various options available for pack200.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassAttributeAction(String attributeName, String action) voidaddCodeAttributeAction(String attributeName, String action) voidaddFieldAttributeAction(String attributeName, String action) voidaddMethodAttributeAction(String attributeName, String action) voidaddPassFile(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.intlongorg.objectweb.asm.Attribute[]booleanisGzip()booleanbooleanbooleanisPassFile(String passFileName) booleanbooleanvoidremovePassFile(String passFileName) voidsetDeflateHint(String deflateHint) voidsetEffort(int effort) Sets the compression effort level (0-9, equivalent to -E command line option)voidsetGzip(boolean gzip) voidsetKeepFileOrder(boolean keepFileOrder) voidsetLogFile(String logFile) voidsetModificationTime(String modificationTime) voidsetQuiet(boolean quiet) voidsetSegmentLimit(long segmentLimit) Sets the segment limit (equivalent to -S command line option)voidsetStripDebug(boolean stripDebug) Sets strip debug attributes.voidsetUnknownAttributeAction(String unknownAttributeAction) Sets the compressor behavior when an unknown attribute is encountered.voidsetVerbose(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
-