public class Link.Compression
extends java.lang.Object
| Constructor and Description |
|---|
Compression() |
| Modifier and Type | Method and Description |
|---|---|
Link.PatternListEntry |
createFiles()
Creates a nested element which can specify a pattern of files
to compress.
|
Link.CompressionLevel |
getLevel()
Required attribute containing level of compression.
|
void |
setFiles(java.lang.String patternList)
Sets 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.
|
void |
setLevel(Link.CompressionLevel level)
Sets attribute indicating level of compression.
|
java.lang.String |
toCommandLineOption()
Converts this element to a single jlink option value.
|
void |
validate()
Verifies this element's state.
|
public Link.CompressionLevel getLevel()
public void setLevel(Link.CompressionLevel level)
level - type of compression to apply to linked imagepublic Link.PatternListEntry createFiles()
public void setFiles(java.lang.String patternList)
patternList - comma-separated list of patterns and/or file namesLink.PatternListEntrypublic void validate()
BuildException - if compression level is not setBuildException - if any nested patterns are invalidpublic java.lang.String toCommandLineOption()