Class TapeArchiveEntryHeader.Builder
java.lang.Object
xyz.apollosoftware.bibliothiki.compression.formats.tar.TapeArchiveEntryHeader.Builder
- Enclosing class:
- TapeArchiveEntryHeader
The builder for
TapeArchiveEntryHeader.-
Method Summary
Modifier and TypeMethodDescription@NonNull TapeArchiveEntryHeaderbuild()Build theTapeArchiveEntryHeader.@NonNull TapeArchiveEntryHeader.Builderchecksum(long checksum) Set the checksum of the entry.@NonNull TapeArchiveEntryHeader.BuilderfileSize(long fileSize) Set the fileSize of the entry.@NonNull TapeArchiveEntryHeader.Buildergroup(long group) Set the group of the entry.@NonNull TapeArchiveEntryHeader.BuilderlastModified(Instant lastModified) Set the last modification timestamp of the entry.@NonNull TapeArchiveEntryHeader.BuilderlinkedFile(String linkedFile) Set the linked file of the entry (relevant only to types whereTapeArchiveEntryHeader.Type.isLink()is true).@NonNull TapeArchiveEntryHeader.Buildermode(long mode) Set the mode of the entry.@NonNull TapeArchiveEntryHeader.BuilderSet the name of the entry.@NonNull TapeArchiveEntryHeader.Builderowner(long owner) Set the owner of the entry.@NonNull TapeArchiveEntryHeader.BuilderSet theTapeArchiveEntryHeader.Typeof the entry.@NonNull TapeArchiveEntryHeader.BuilderunixStandardHeader(TapeArchiveEntryHeader.UnixStandardEntryHeader unixStandardHeader) Set the (UStar) UNIX Standard header information of the entry.
-
Method Details
-
name
Set the name of the entry.- Parameters:
name- The name of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
mode
Set the mode of the entry.- Parameters:
mode- The mode of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
owner
Set the owner of the entry.- Parameters:
owner- The owner of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
group
Set the group of the entry.- Parameters:
group- The group of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
fileSize
Set the fileSize of the entry.- Parameters:
fileSize- The fileSize of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
lastModified
Set the last modification timestamp of the entry.- Parameters:
lastModified- The last modification timestamp of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
checksum
Set the checksum of the entry.- Parameters:
checksum- The checksum of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
type
Set theTapeArchiveEntryHeader.Typeof the entry.- Parameters:
type- The type of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
linkedFile
Set the linked file of the entry (relevant only to types whereTapeArchiveEntryHeader.Type.isLink()is true).- Parameters:
linkedFile- The linked file of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
unixStandardHeader
public @NonNull TapeArchiveEntryHeader.Builder unixStandardHeader(TapeArchiveEntryHeader.UnixStandardEntryHeader unixStandardHeader) Set the (UStar) UNIX Standard header information of the entry.- Parameters:
unixStandardHeader- The UNIX Standard header information of the entry.- Returns:
- The same
TapeArchiveEntryHeader.Builder.
-
build
Build theTapeArchiveEntryHeader.If any of the fields were invalid, they will fail at this point as this is when the
TapeArchiveEntryHeaderconstructor is executed.- Returns:
- The built
TapeArchiveEntryHeader.
-