org.freecompany.redline.payload
public class Contents extends Object
Field Summary | |
---|---|
protected HashSet<String> | files |
protected TreeSet<CpioHeader> | headers |
protected HashMap<CpioHeader,Object> | sources |
Method Summary | |
---|---|
void | addDirectory(String path)
Adds a directory entry to the archive with the default permissions of 644.
|
void | addDirectory(String path, Directive directive)
Adds a directory entry to the archive with the default permissions of 644.
|
void | addDirectory(String path, int permissions)
Adds a directory entry to the archive with the specified permissions.
|
void | addDirectory(String path, int permissions, Directive directive, String uname, String gname)
Adds a directory entry to the archive with the specified permissions.
|
void | addDirectory(String path, int permissions, Directive directive, String uname, String gname, boolean addParents)
Adds a directory entry to the archive with the specified permissions.
|
void | addFile(String path, File source)
Adds a file entry to the archive with the default permissions of 644.
|
void | addFile(String path, File source, int permissions)
Adds a file entry to the archive with the specified permissions.
|
void | addFile(String path, File source, int permissions, Directive directive)
Adds a file entry to the archive with the specified permissions.
|
void | addFile(String path, File source, int permissions, Directive directive, String uname, String gname)
Adds a file entry to the archive with the specified permissions.
|
void | addLink(String path, String target)
Adds a directory entry to the archive with the default permissions of 644.
|
void | addLink(String path, String target, int permissions)
Adds a directory entry to the archive with the specified permissions.
|
protected void | addParents(File file, int permissions, String uname, String gname)
Adds entries for parent directories of this file, so that they may be cleaned up when
removing the package. |
String[] | getBaseNames() |
int[] | getClasses() |
int[] | getColors() |
String[] | getContexts() |
int[] | getDependsN() |
int[] | getDependsX() |
int[] | getDevices() |
int[] | getDirIndexes() |
String[] | getDirNames() |
int[] | getFlags() |
String[] | getGroups() |
int[] | getInodes() |
String[] | getLangs() |
String[] | getLinkTos()
This could be more efficiently handled during the output phase using a filtering channel,
but would require placeholder values in the archive and some state. |
String[] | getMD5s()
Caclulates an MD5 hash for each file in the archive. |
short[] | getModes() |
int[] | getMtimes() |
short[] | getRdevs() |
int[] | getSizes() |
Object | getSource(CpioHeader header)
Retrieves the content for this archive entry, which may be a File if the entry is a regular file or
a CharSequence containing the name of the target path if the entry is a link. |
int | getTotalSize()
Accumulated size of all files included in the archive. |
String[] | getUsers() |
int[] | getVerifyFlags() |
Iterable<CpioHeader> | headers()
Retrieve the archive headers. |
int | size()
Retrieve the size of this archive in number of files. |
Parameters: path the destination path for the installed file.
Parameters: path the destination path for the installed file. directive directive indicating special handling for this directory.
Parameters: path the destination path for the installed file. permissions the permissions flags.
Parameters: path the destination path for the installed file. permissions the permissions flags. directive directive indicating special handling for this directory. uname user owner for the given file gname group owner for the given file
Parameters: path the destination path for the installed file. permissions the permissions flags. directive directive indicating special handling for this directory. uname user owner for the given file gname group owner for the given file addParents whether to add parent directories to the rpm
Parameters: path the destination path for the installed file. source the local file to be included in the package.
Parameters: path the destination path for the installed file. source the local file to be included in the package. permissions the permissions flags.
Parameters: path the destination path for the installed file. source the local file to be included in the package. permissions the permissions flags. directive directive indicating special handling for this file.
Parameters: path the destination path for the installed file. source the local file to be included in the package. permissions the permissions flags. directive directive indicating special handling for this file. uname user owner for the given file gname group owner for the given file
Parameters: path the destination path for the installed file.
Parameters: path the destination path for the installed file. permissions the permissions flags.