Class Link.Compression
java.lang.Object
org.apache.tools.ant.taskdefs.modules.Link.Compression
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates a nested element which can specify a pattern of files to compress.getLevel()Required attribute containing level of compression.voidSets an attribute that represents a list of file patterns to compress in the linked image, as a comma-separated list of PathMatcher patterns or pattern list files.voidsetLevel(Link.CompressionLevel level) Sets attribute indicating level of compression.Converts this element to a single jlink option value.voidvalidate()Verifies this element's state.
- 
Constructor Details- 
Compressionpublic Compression()
 
- 
- 
Method Details- 
getLevelRequired attribute containing level of compression.- Returns:
- compression level
 
- 
setLevelSets attribute indicating level of compression.- Parameters:
- level- type of compression to apply to linked image
 
- 
createFilesCreates a nested element which can specify a pattern of files to compress.- Returns:
- new, unconfigured child element
 
- 
setFilesSets an attribute that represents a list of file patterns to compress in the linked image, as a comma-separated list of PathMatcher patterns or pattern list files.- Parameters:
- patternList- comma-separated list of patterns and/or file names
- See Also:
 
- 
validatepublic void validate()Verifies this element's state.- Throws:
- BuildException- if compression level is not set
- BuildException- if any nested patterns are invalid
 
- 
toCommandLineOptionConverts this element to a single jlink option value.- Returns:
- command line option representing this element's state
 
 
-