public class TarArchiver.TarOptions extends Object
Constructor and Description |
---|
TarArchiver.TarOptions() |
Modifier and Type | Method and Description |
---|---|
int |
getDirMode()
Deprecated.
use AbstractArchiver.getDefaultDirectoryMode()
|
int |
getGid() |
String |
getGroup() |
int |
getMode()
Deprecated.
use AbstractArchiver.getDefaultFileMode()
|
boolean |
getPreserveLeadingSlashes() |
int |
getUid() |
String |
getUserName() |
void |
setDirMode(int mode)
Deprecated.
use AbstractArchiver.setDefaultDirectoryMode(int)
|
void |
setDirMode(String octalString)
Deprecated.
use AbstractArchiver.setDefaultDirectoryMode(int)
|
void |
setGid(int gid)
The GID for the tar entry; optional, default="0"
This is not the same as the group name.
|
void |
setGroup(String groupName)
The groupname for the tar entry; optional, default=""
This is not the same as the GID.
|
void |
setMode(int mode)
Deprecated.
use AbstractArchiver.setDefaultFileMode(int)
|
void |
setMode(String octalString)
Deprecated.
use AbstractArchiver.setDefaultFileMode(int)
|
void |
setPreserveLeadingSlashes(boolean preserveLeadingSlashes)
Flag to indicates whether leading `/'s should
be preserved in the file names.
|
void |
setUid(int uid)
The uid for the tar entry
This is not the same as the User name.
|
void |
setUserName(String userName)
The username for the tar entry
This is not the same as the UID.
|
public void setMode(String octalString)
octalString
- a 3 digit octal string.public void setMode(int mode)
mode
- unix file modepublic int getMode()
public void setDirMode(String octalString)
octalString
- a 3 digit octal string.public void setDirMode(int mode)
mode
- unix directory modepublic int getDirMode()
public void setUserName(String userName)
userName
- the user name for the tar entry.public String getUserName()
public void setUid(int uid)
uid
- the id of the user for the tar entry.public int getUid()
public void setGroup(String groupName)
groupName
- the group name string.public String getGroup()
public void setGid(int gid)
gid
- the group id.public int getGid()
public boolean getPreserveLeadingSlashes()
public void setPreserveLeadingSlashes(boolean preserveLeadingSlashes)
false
.preserveLeadingSlashes
- the leading slashes flag.Copyright © 2001-2014 Codehaus. All Rights Reserved.