com.jguild.jrpm.io.cpio
public final class CPIOEntry extends Object implements CPIOConstants
Constructor Summary | |
---|---|
CPIOEntry()
Ceates a CPIOEntry without a cpio format. | |
CPIOEntry(short format)
Ceates a CPIOEntry with a specified format.
| |
CPIOEntry(String name)
Ceates a CPIOEntry with a specified name. |
Method Summary | |
---|---|
long | getChksum()
Get the checksum.
|
long | getDevice()
Get the device id.
|
long | getDeviceMaj()
Get the major device id.
|
long | getDeviceMin()
Get the minor device id
|
long | getFileSize()
Get the filesize.
|
short | getFormat()
Get the format for this entry.
|
long | getGID()
Get the group id.
|
long | getHeaderSize()
Get the size of this entry on the stream
|
long | getInode()
Set the inode.
|
long | getMode()
Get the mode of this entry (e.g. directory, regular file).
|
String | getName()
Get the name.
|
long | getNumberOfLinks()
Get the number of links.
|
long | getRemoteDevice()
Get the remote device id.
|
long | getRemoteDeviceMaj()
Get the remote major device id.
|
long | getRemoteDeviceMin()
Get the remote minor device id.
|
long | getTime()
Get the time in seconds.
|
long | getUID()
Get the user id.
|
boolean | isBlockDevice()
Check if this entry represents a block device.
|
boolean | isCharacterDevice()
Check if this entry represents a character device.
|
boolean | isDirectory()
Check if this entry represents a directory.
|
boolean | isNetwork()
Check if this entry represents a network device.
|
boolean | isPipe()
Check if this entry represents a pipe.
|
boolean | isRegularFile()
Check if this entry represents a regular file.
|
boolean | isSocket()
Check if this entry represents a socket.
|
boolean | isSymbolicLink()
Check if this entry represents a symbolic link.
|
void | setChksum(long chksum)
Set the checksum. |
void | setDevice(long device)
Set the device id.
|
void | setDeviceMaj(long maj)
Set major device id.
|
void | setDeviceMin(long min)
Set the minor device id
|
void | setFileSize(long size)
Set the filesize.
|
void | setGID(long gid)
Set the group id.
|
void | setInode(long inode)
Set the inode.
|
void | setMode(long mode)
Set the mode of this entry (e.g. directory, regular file).
|
void | setName(String name)
Set the name.
|
void | setNumberOfLinks(long nlink)
Set the number of links.
|
void | setRemoteDevice(long device)
Set the remote device id.
|
void | setRemoteDeviceMaj(long rmaj)
Set the remote major device id.
|
void | setRemoteDeviceMin(long rmin)
Set the remote minor device id.
|
void | setTime(long time)
Set the time in seconds.
|
void | setUID(long uid)
Set the user id.
|
Parameters: format The cpio format for this entry.
Parameters: name The name of this entry.
Returns: Returns the checksum.
Returns: Returns the device id.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with a new format.
Returns: Returns the major device id.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with an old format.
Returns: Returns the minor device id.
Returns: Returns the filesize.
Returns: Returns the format.
Returns: Returns the group id.
Returns: Returns the size.
Returns: Returns the inode.
Returns: Returns the mode.
Returns: Returns the name.
Returns: Returns the number of links.
Returns: Returns the remote device id.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with a new format.
Returns: Returns the remote major device id.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with an old format.
Returns: Returns the remote minor device id.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with an old format.
Returns: Returns the time.
Returns: Returns the user id.
Returns: TRUE if this entry is a block device.
Returns: TRUE if this entry is a character device.
Returns: TRUE if this entry is a directory.
Returns: TRUE if this entry is a network device.
Returns: TRUE if this entry is a pipe.
Returns: TRUE if this entry is a regular file.
Returns: TRUE if this entry is a socket.
Returns: TRUE if this entry is a symbolic link.
Parameters: chksum The checksum to set.
Parameters: device The device id to set.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with a new format.
Parameters: maj The major device id to set.
Parameters: min The minor device id to set.
Parameters: size The filesize to set.
Parameters: gid The group id to set.
Parameters: inode The inode to set.
Parameters: mode The mode to set.
Parameters: name The name to set.
Parameters: nlink The number of links to set.
Parameters: device The remote device id to set.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with a new format.
Parameters: rmaj The remote major device id to set.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with an old format.
Parameters: rmin The remote minor device id to set.
Throws: UnsupportedOperationException if this method is called for a CPIOEntry with an old format.
Parameters: time The time to set.
Parameters: uid The user id to set.