Class ArchiveEntry.Builder
java.lang.Object
xyz.apollosoftware.bibliothiki.compression.ArchiveEntry.Builder
- Enclosing class:
- ArchiveEntry
The builder for
ArchiveEntry.-
Method Summary
Modifier and TypeMethodDescription@NonNull ArchiveEntrybuild()Build theArchiveEntry.@NonNull ArchiveEntry.BuilderSet the name (qualified file path) of the entry.@NonNull ArchiveEntry.Builderpermissions(@Nullable ArchiveEntry.PermissionSet permissions) Set the UNIX permissions of the entry.@NonNull ArchiveEntry.BuilderSet the file size, in bytes, of the entry.@NonNull ArchiveEntry.Buildertype(@NonNull ArchiveEntry.Type type) Set theArchiveEntry.Typeof the entry.
-
Method Details
-
name
Set the name (qualified file path) of the entry.- Parameters:
name- The name of the entry.- Returns:
- The same
ArchiveEntry.Builder.
-
type
Set theArchiveEntry.Typeof the entry.- Parameters:
type- The type of the entry.- Returns:
- The same
ArchiveEntry.Builder.
-
permissions
Set the UNIX permissions of the entry.- Parameters:
permissions- The permissions of the entry.- Returns:
- The same
ArchiveEntry.Builder.
-
size
Set the file size, in bytes, of the entry.- Parameters:
size- The size of the entry.- Returns:
- The same
ArchiveEntry.Builder.
-
build
Build theArchiveEntry.If any of the fields were invalid, they will fail at this point as this is when the
ArchiveEntryconstructor is executed.- Returns:
- The built
ArchiveEntry.
-