|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.services.clientserver.archiveutils.TarEntry
public class TarEntry
This class represents a tar file entry.
Field Summary | |
---|---|
byte[] |
chksum
|
byte[] |
devmajor
|
byte[] |
devminor
|
byte[] |
gid
|
byte[] |
gname
|
byte[] |
linkname
|
byte[] |
magic
|
byte[] |
mode
|
byte[] |
mtime
|
byte[] |
name
|
byte[] |
prefix
|
byte[] |
size
|
byte |
typeflag
|
byte[] |
uid
|
byte[] |
uname
|
byte[] |
version
|
Constructor Summary | |
---|---|
TarEntry(String name)
Creates a new tar entry with the specified name. |
Method Summary | |
---|---|
void |
calculateChecksum()
Calculates the checksum of the entry. |
Object |
clone()
|
long |
getChecksum()
Gets the checksum. |
String |
getDevMajor()
Gets the major device number in octal. |
String |
getDevMinor()
Gets the minor device number in octal. |
String |
getGID()
Gets the gid in octal. |
String |
getGroupName()
Gets the group name. |
String |
getLinkName()
Gets the link name. |
String |
getMagic()
Returns whether the archive was output in the P1003 archive format. |
String |
getMode()
Gets the mode in octal. |
long |
getModificationTime()
Gets the modification time, in milliseconds since 00:00:00 GMT, January 1, 1970. |
String |
getName()
Gets the name. |
String |
getPrefix()
Gets the prefix in octal. |
long |
getSize()
Gets the size in bytes. |
char |
getTypeFlag()
Gets the type of file archived. |
String |
getUID()
Gets the uid in octal. |
String |
getUserName()
Gets the user name. |
String |
getVersion()
Gets the version in octal. |
boolean |
isDirectory()
Returns whether the entry represents a directory. |
void |
setModificationTime(long modTime)
Sets the modification time. |
void |
setName(String fileName)
Sets the name of the tar entry. |
void |
setSize(long fileSize)
Sets the file size in bytes. |
void |
setUserMode(boolean canRead,
boolean canWrite,
boolean canExecute)
Sets the user mod. |
void |
setUserName(String userName)
Sets the user name of the tar entry. |
void |
writeFields(OutputStream outStream)
Write the fields to the given output stream. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte[] name
public byte[] mode
public byte[] uid
public byte[] gid
public byte[] size
public byte[] mtime
public byte[] chksum
public byte typeflag
public byte[] linkname
public byte[] magic
public byte[] version
public byte[] uname
public byte[] gname
public byte[] devmajor
public byte[] devminor
public byte[] prefix
Constructor Detail |
---|
public TarEntry(String name)
name
- the name of the tar entry.
NullPointerException
- if the name is null
.
IllegalArgumentException
- if the length of the name is greater thatMethod Detail |
---|
public void setName(String fileName)
fileName
- the name for the tar entry.
NullPointerException
- if the name is null
.public String getName()
public void setUserMode(boolean canRead, boolean canWrite, boolean canExecute)
canRead
- true
if the user has read permission, false
otherwise.canWrite
- true
if the user has write permission, false
otherwise.canExecute
- true
if the user has execute permission, false
otherwise.public String getMode()
public String getUID()
public String getGID()
public void setSize(long fileSize)
fileSize
- the file size.public long getSize()
public void setModificationTime(long modTime)
modTime
- the modification time, in milliseconds since 00:00:00 GMT, January 1, 1970.public long getModificationTime()
public long getChecksum()
public char getTypeFlag()
public String getLinkName()
public String getMagic()
public String getVersion()
public void setUserName(String userName)
userName
- the user name for the tar entry.
NullPointerException
- if the user name is null
.public String getUserName()
public String getGroupName()
public String getDevMajor()
public String getDevMinor()
public String getPrefix()
public boolean isDirectory()
true
if the entry represents a directory, false
otherwise.public void writeFields(OutputStream outStream) throws IOException
outStream
- the output stream to write to.
IOException
public void calculateChecksum()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Object.clone()
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |