Class TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder
java.lang.Object
xyz.apollosoftware.bibliothiki.compression.formats.tar.TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder
- Enclosing class:
- TapeArchiveEntryHeader.UnixStandardEntryHeader
The builder for
TapeArchiveEntryHeader.UnixStandardEntryHeader.-
Method Summary
Modifier and TypeMethodDescriptionbuild()deviceMajorNumber(long deviceMajorNumber) Set the device major version number of the entry.deviceMinorNumber(long deviceMinorNumber) Set the device minor version number of the entry.filenamePrefix(String filenamePrefix) Set the filename prefix of the entry.Set the owner group name of the entry.Set the owner username of the entry.version(short version) Set the version of the entry.
-
Method Details
-
version
Set the version of the entry.- Parameters:
version- The version of the entry.- Returns:
- The same
TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder.
-
userName
Set the owner username of the entry.- Parameters:
userName- The username of the entry.- Returns:
- The same
TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder.
-
groupName
Set the owner group name of the entry.- Parameters:
groupName- The group name of the entry.- Returns:
- The same
TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder.
-
deviceMajorNumber
public @NonNull TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder deviceMajorNumber(long deviceMajorNumber) Set the device major version number of the entry. (This is relevant only to types whereTapeArchiveEntryHeader.Type.isDevice()is true).- Parameters:
deviceMajorNumber- The device major version number of the entry.- Returns:
- The same
TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder.
-
deviceMinorNumber
public @NonNull TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder deviceMinorNumber(long deviceMinorNumber) Set the device minor version number of the entry. (This is relevant only to types whereTapeArchiveEntryHeader.Type.isDevice()is true).- Parameters:
deviceMinorNumber- The device minor version number of the entry.- Returns:
- The same
TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder.
-
filenamePrefix
public @NonNull TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder filenamePrefix(String filenamePrefix) Set the filename prefix of the entry.This is the additional 155 characters that can be prepended to the
TapeArchiveEntryHeader.name()to produce a full 255 character UNIX filename.- Parameters:
filenamePrefix- The filename prefix of the entry.- Returns:
- The same
TapeArchiveEntryHeader.UnixStandardEntryHeader.Builder.
-
build
Build theTapeArchiveEntryHeader.UnixStandardEntryHeader.If any of the fields were invalid, they will fail at this point as this is when the
TapeArchiveEntryHeader.UnixStandardEntryHeaderconstructor is executed.- Returns:
- The built
TapeArchiveEntryHeader.UnixStandardEntryHeader.
-