public class PackingOptions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ERROR |
static String |
KEEP |
static String |
PASS |
static String |
STRIP |
Constructor and Description |
---|
PackingOptions() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
String |
getDeflateHint() |
int |
getEffort() |
String |
getLogFile() |
String |
getModificationTime() |
long |
getSegmentLimit() |
String |
getUnknownAttributeAction() |
org.objectweb.asm.Attribute[] |
getUnknownAttributePrototypes() |
String |
getUnknownClassAttributeAction(String type) |
String |
getUnknownCodeAttributeAction(String type) |
String |
getUnknownFieldAttributeAction(String type) |
String |
getUnknownMethodAttributeAction(String type) |
boolean |
isGzip() |
boolean |
isKeepDeflateHint() |
boolean |
isKeepFileOrder() |
boolean |
isPassFile(String passFileName) |
boolean |
isStripDebug() |
boolean |
isVerbose() |
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)
Set the segment limit (equivalent to -S command line option)
|
void |
setStripDebug(boolean stripDebug)
Set strip debug attributes.
|
void |
setUnknownAttributeAction(String unknownAttributeAction)
Tell the compressor what to do if an unknown attribute is encountered
|
void |
setVerbose(boolean verbose) |
public static final String STRIP
public static final String ERROR
public static final String PASS
public static final String KEEP
public PackingOptions()
public boolean isGzip()
public void setGzip(boolean gzip)
public boolean isStripDebug()
public void setStripDebug(boolean stripDebug)
stripDebug
- If true, all debug attributes.public boolean isKeepFileOrder()
public void setKeepFileOrder(boolean keepFileOrder)
public long getSegmentLimit()
public void setSegmentLimit(long segmentLimit)
segmentLimit
- - the limit in bytespublic int getEffort()
public void setEffort(int effort)
effort
- the compression effort level, 0-9.public String getDeflateHint()
public boolean isKeepDeflateHint()
public void setDeflateHint(String deflateHint)
public String getModificationTime()
public void setModificationTime(String modificationTime)
public boolean isPassFile(String passFileName)
public void addPassFile(String passFileName)
passFileName
- the file namepublic void removePassFile(String passFileName)
public String getUnknownAttributeAction()
public void setUnknownAttributeAction(String unknownAttributeAction)
unknownAttributeAction
- - the action to performpublic void addClassAttributeAction(String attributeName, String action)
public void addFieldAttributeAction(String attributeName, String action)
public void addMethodAttributeAction(String attributeName, String action)
public void addCodeAttributeAction(String attributeName, String action)
public boolean isVerbose()
public void setVerbose(boolean verbose)
public void setQuiet(boolean quiet)
public String getLogFile()
public void setLogFile(String logFile)
public org.objectweb.asm.Attribute[] getUnknownAttributePrototypes()
public String getUnknownClassAttributeAction(String type)
public String getUnknownMethodAttributeAction(String type)
public String getUnknownFieldAttributeAction(String type)
public String getUnknownCodeAttributeAction(String type)
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.