|
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(java.lang.String name)
Creates a new tar entry with the specified name. |
Method Summary | |
---|---|
void |
calculateChecksum()
Calculates the checksum of the entry. |
java.lang.Object |
clone()
|
long |
getChecksum()
Gets the checksum. |
java.lang.String |
getDevMajor()
Gets the major device number in octal. |
java.lang.String |
getDevMinor()
Gets the minor device number in octal. |
java.lang.String |
getGID()
Gets the gid in octal. |
java.lang.String |
getGroupName()
Gets the group name. |
java.lang.String |
getLinkName()
Gets the link name. |
java.lang.String |
getMagic()
Returns whether the archive was output in the P1003 archive format. |
java.lang.String |
getMode()
Gets the mode in octal. |
long |
getModificationTime()
Gets the modification time, in milliseconds since 00:00:00 GMT, January 1, 1970. |
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getPrefix()
Gets the prefix in octal. |
long |
getSize()
Gets the size in bytes. |
char |
getTypeFlag()
Gets the type of file archived. |
java.lang.String |
getUID()
Gets the uid in octal. |
java.lang.String |
getUserName()
Gets the user name. |
java.lang.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(java.lang.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(java.lang.String userName)
Sets the user name of the tar entry. |
void |
writeFields(java.io.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(java.lang.String name)
name
- the name of the tar entry.
java.lang.NullPointerException
- if the name is null
.
java.lang.IllegalArgumentException
- if the length of the name is greater thatMethod Detail |
---|
public void setName(java.lang.String fileName)
fileName
- the name for the tar entry.
java.lang.NullPointerException
- if the name is null
.public java.lang.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 java.lang.String getMode()
public java.lang.String getUID()
public java.lang.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 java.lang.String getLinkName()
public java.lang.String getMagic()
public java.lang.String getVersion()
public void setUserName(java.lang.String userName)
userName
- the user name for the tar entry.
java.lang.NullPointerException
- if the user name is null
.public java.lang.String getUserName()
public java.lang.String getGroupName()
public java.lang.String getDevMajor()
public java.lang.String getDevMinor()
public java.lang.String getPrefix()
public boolean isDirectory()
true
if the entry represents a directory, false
otherwise.public void writeFields(java.io.OutputStream outStream) throws java.io.IOException
outStream
- the output stream to write to.
java.io.IOException
public void calculateChecksum()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
Object.clone()
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |