| java.lang.Object org.eclipse.ui.internal.wizards.datatransfer.TarEntry
TarEntry | public class TarEntry implements Cloneable(Code) | | Representation of a file in a tar archive.
since: 3.1 |
Field Summary | |
final public static int | DIRECTORY Entry type for directories. | final public static int | FILE Entry type for normal files. | int | filepos |
Constructor Summary | |
| TarEntry(String name, int pos) Create a new TarEntry for a file of the given name at the
given position in the file. | public | TarEntry(String name) Create a new TarEntry for a file of the given name. |
Method Summary | |
public int | getFileType() Returns the type of this file, one of FILE, LINK, SYM_LINK,
CHAR_DEVICE, BLOCK_DEVICE, DIRECTORY or FIFO. | public long | getMode() Returns the mode of the file in UNIX permissions format. | public String | getName() Returns the name of the file. | public long | getSize() Returns the size of the file in bytes. | public long | getTime() Returns the modification time of the file in seconds since January
1st 1970. | public void | setFileType(int type) Sets the type of the file, one of FILE, LINK, SYMLINK, CHAR_DEVICE,
BLOCK_DEVICE, or DIRECTORY. | public void | setMode(long mode) Sets the mode of the file in UNIX permissions format. | public void | setSize(long size) Sets the size of the file in bytes. | public void | setTime(long time) Sets the modification time of the file in seconds since January
1st 1970. |
DIRECTORY | final public static int DIRECTORY(Code) | | Entry type for directories.
|
FILE | final public static int FILE(Code) | | Entry type for normal files.
|
TarEntry | TarEntry(String name, int pos)(Code) | | Create a new TarEntry for a file of the given name at the
given position in the file.
Parameters: name - filename Parameters: pos - position in the file in bytes |
TarEntry | public TarEntry(String name)(Code) | | Create a new TarEntry for a file of the given name.
Parameters: name - filename |
getFileType | public int getFileType()(Code) | | Returns the type of this file, one of FILE, LINK, SYM_LINK,
CHAR_DEVICE, BLOCK_DEVICE, DIRECTORY or FIFO.
file type |
getMode | public long getMode()(Code) | | Returns the mode of the file in UNIX permissions format.
file mode |
getName | public String getName()(Code) | | Returns the name of the file.
filename |
getSize | public long getSize()(Code) | | Returns the size of the file in bytes.
filesize |
getTime | public long getTime()(Code) | | Returns the modification time of the file in seconds since January
1st 1970.
time |
setFileType | public void setFileType(int type)(Code) | | Sets the type of the file, one of FILE, LINK, SYMLINK, CHAR_DEVICE,
BLOCK_DEVICE, or DIRECTORY.
Parameters: type - |
setMode | public void setMode(long mode)(Code) | | Sets the mode of the file in UNIX permissions format.
Parameters: mode - |
setSize | public void setSize(long size)(Code) | | Sets the size of the file in bytes.
Parameters: size - |
setTime | public void setTime(long time)(Code) | | Sets the modification time of the file in seconds since January
1st 1970.
Parameters: time - |
|
|