public class TarBuilderSettings extends Object
The default file entry settings are:
Property | Value |
---|---|
Unix entity mode | 0644 |
Owner UID | 0 |
Owner GID | 0 |
Owner user name | The name of the user owning the Java process |
Owner group name | users |
The default directory entry settings are:
Property | Value |
---|---|
Unix entity mode | 0755 |
Owner UID | 0 |
Owner GID | 0 |
Owner user name | The name of the user owning the Java process |
Owner group name | users |
The default entry strategy is the default GnuTarEntryStrategy
, which
means that the Tar builder will create Gnu Tar compatible archives by
default.
The setter methods of this object return the object instance so that setter calls can be chained together.
TarBuilder
,
TarStreamBuilder
Constructor and Description |
---|
TarBuilderSettings() |
Modifier and Type | Method and Description |
---|---|
TarEntrySettings |
getDefaultDirectoryEntrySettings()
Get the default directory entry settings.
|
TarEntrySettings |
getDefaultFileEntrySettings()
Get the default file entry settings.
|
TarEntryStrategy |
getEntryStrategy()
Get the entry strategy.
|
TarBuilderSettings |
setDefaultDirectoryEntrySettings(TarEntrySettings defaultDirectorySettings)
Set new default directory entry settings.
|
TarBuilderSettings |
setDefaultFileEntrySettings(TarEntrySettings defaultFileSettings)
Set new default file entry settings.
|
TarBuilderSettings |
setEntryStrategy(TarEntryStrategy entryStrategy)
Set a new entry strategy.
|
public TarEntrySettings getDefaultFileEntrySettings()
public TarBuilderSettings setDefaultFileEntrySettings(TarEntrySettings defaultFileSettings)
This will be combined with the default default file entry settings, so it only has to contain the configuration delta compared with the default settings.
defaultFileSettings
- The new default file entry settings.this
public TarEntrySettings getDefaultDirectoryEntrySettings()
public TarBuilderSettings setDefaultDirectoryEntrySettings(TarEntrySettings defaultDirectorySettings)
This will be combined with the default default directory entry settings, so it only has to contain the configuration delta compared with the default settings.
defaultDirectorySettings
- The new default directory entry settings.this
public TarEntryStrategy getEntryStrategy()
public TarBuilderSettings setEntryStrategy(TarEntryStrategy entryStrategy)
entryStrategy
- The new entry strategy.this