Class CoffeePickArchiveEntries
java.lang.Object
com.io7m.coffeepick.client.vanilla.internal.CoffeePickArchiveEntries
public final class CoffeePickArchiveEntries
extends java.lang.Object
Functions for dealing with archive entries.
-
Method Summary
Modifier and Type Method Description static java.util.Optional<java.util.Set<java.nio.file.attribute.PosixFilePermission>>
posixFilePermissionsFor(org.apache.commons.compress.archivers.ArchiveEntry entry)
Try to extract POSIX mode information from the given entry.static java.util.OptionalLong
posixModeFor(org.apache.commons.compress.archivers.ArchiveEntry entry)
Try to extract POSIX mode information from the given entry.
-
Method Details
-
posixFilePermissionsFor
public static java.util.Optional<java.util.Set<java.nio.file.attribute.PosixFilePermission>> posixFilePermissionsFor(org.apache.commons.compress.archivers.ArchiveEntry entry)Try to extract POSIX mode information from the given entry.- Parameters:
entry
- The entry- Returns:
- POSIX mode information if any is present
-
posixModeFor
public static java.util.OptionalLong posixModeFor(org.apache.commons.compress.archivers.ArchiveEntry entry)Try to extract POSIX mode information from the given entry.- Parameters:
entry
- The entry- Returns:
- POSIX mode information if any is present
-