| Modifier and Type | Field and Description |
|---|---|
| private List | |
| pack-priv byte[] | |
| private static final int | |
| private boolean | |
| private List | |
| private String | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addAddFiles(String...
an array of files to add to the output. filesToAdd)Adds several files to be added into the output. |
| private void | |
| private void | |
| public void | addMergeFile(String
the file to merge into the output. fileToMerge)Adds a file to be merged into the output. |
| public void | addMergeFiles(String...
an array of files to merge into the output. filesToMerge)Adds several files to be merged into the output. |
| private void | |
| private long | |
| private long | |
| private String | |
| public void | |
| public static void | |
| private void | |
| private ZipEntry | |
| public void | setCompression(boolean
if true use compression. compress)Determines whether output will be compressed. |
| public void | setOutfile(String
the file to create. outfile)The file that will be created by this instance of jlink. |
| addfiles | back to summary |
|---|---|
| private List<String> addfiles | |
| buffer | back to summary |
|---|---|
| pack-priv byte[] buffer | |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| compression | back to summary |
|---|---|
| private boolean compression | |
| mergefiles | back to summary |
|---|---|
| private List<String> mergefiles | |
| outfile | back to summary |
|---|---|
| private String outfile | |
| VECTOR_INIT_SIZE | back to summary |
|---|---|
| private static final int VECTOR_INIT_SIZE | |
| jlink | back to summary |
|---|---|
| public jlink() | |
| addAddFile | back to summary |
|---|---|
| public void addAddFile(String fileToAdd) Adds a file to be added into the output.
| |
| addAddFiles | back to summary |
|---|---|
| public void addAddFiles(String... filesToAdd) Adds several files to be added into the output.
| |
| addDirContents | back to summary |
|---|---|
| private void addDirContents(ZipOutputStream output, File dir, String prefix, boolean compress) throws IOException | |
| addFile | back to summary |
|---|---|
| private void addFile(ZipOutputStream output, File file, String prefix, boolean compress) throws IOException | |
| addMergeFile | back to summary |
|---|---|
| public void addMergeFile(String fileToMerge) Adds a file to be merged into the output.
| |
| addMergeFiles | back to summary |
|---|---|
| public void addMergeFiles(String... filesToMerge) Adds several files to be merged into the output.
| |
| addToOutputStream | back to summary |
|---|---|
| private void addToOutputStream(ZipOutputStream output, InputStream input, ZipEntry ze) throws IOException | |
| calcChecksum | back to summary |
|---|---|
| private long calcChecksum(File f) throws IOException | |
| calcChecksum | back to summary |
|---|---|
| private long calcChecksum(InputStream in) throws IOException | |
| getEntryName | back to summary |
|---|---|
| private String getEntryName(File file, String prefix) | |
| link | back to summary |
|---|---|
| public void link() throws Exception Performs the linking of files. Addfiles are added to the output as-is. For example, a jar file is added to the output as a jar file. However, mergefiles are first examined for their type. If it is a jar or zip file, the contents will be extracted from the mergefile and entered into the output. If a zip or jar file is encountered in a subdirectory it will be added, not merged. If a directory is encountered, it becomes the root entry of all the files below it. Thus, you can provide multiple, disjoint directories, as addfiles: they will all be added in a rational manner to outfile.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) The command line entry point for jlink.
| |
| mergeZipJarContents | back to summary |
|---|---|
| private void mergeZipJarContents(ZipOutputStream output, File f) throws IOException | |
| processEntry | back to summary |
|---|---|
| private ZipEntry processEntry(ZipFile zip, ZipEntry inputEntry) | |
| setCompression | back to summary |
|---|---|
| public void setCompression(boolean compress) Determines whether output will be compressed.
| |
| setOutfile | back to summary |
|---|---|
| public void setOutfile(String outfile) The file that will be created by this instance of jlink.
| |