public abstract class Packager extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected Collection<String> |
files |
protected File |
ijDir |
protected String |
prefix |
Constructor and Description |
---|
Packager() |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultFiles() |
boolean |
addFile(String fileName,
boolean executable) |
abstract void |
close() |
abstract void |
closeEntry() |
abstract String |
getExtension() |
protected static String |
getPlatform() |
void |
initialize(boolean includeJRE,
String... platforms) |
static void |
main(String[] args) |
abstract void |
open(OutputStream out) |
abstract void |
putNextEntry(String name,
boolean executable,
int size) |
void |
setPrefix(String prefix) |
void |
setRootDirectory(File rootDirectory) |
abstract void |
write(byte[] b,
int off,
int len) |
void |
write(InputStream in) |
protected File ijDir
protected Collection<String> files
protected String prefix
protected byte[] buffer
public abstract String getExtension()
public abstract void open(OutputStream out) throws IOException
IOException
public abstract void putNextEntry(String name, boolean executable, int size) throws IOException
IOException
public abstract void write(byte[] b, int off, int len) throws IOException
IOException
public abstract void closeEntry() throws IOException
IOException
public abstract void close() throws IOException
IOException
public void write(InputStream in) throws IOException
IOException
public void setRootDirectory(File rootDirectory)
public void setPrefix(String prefix)
public void initialize(boolean includeJRE, String... platforms) throws Exception
Exception
public void addDefaultFiles() throws IOException
IOException
public boolean addFile(String fileName, boolean executable) throws IOException
IOException
protected static String getPlatform()
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.