| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static volatile XZUtils. | |
| private static final FileNameUtil | |
| private static final byte[] | HEADER_MAGIC
XZ Header Magic Bytes begin a XZ file. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static XZUtils. | |
| public static String | Returns: name of the corresponding compressed filename of a file fileName)
Deprecated
Use
Maps the given file name to the name that the file should have after compression with xz.
getCompressedFileName(String).
|
| public static String | Returns: name of the corresponding compressed filename of a file fileName)Maps the given file name to the name that the file should have after compression with xz. |
| public static String | Returns: name of the corresponding uncompressed filename of a file fileName)
Deprecated
Use
Maps the given name of a xz-compressed file to the name that the file should have after uncompression.
getUncompressedFileName(String).
|
| public static String | Returns: name of the corresponding uncompressed filename of a file fileName)Maps the given name of a xz-compressed file to the name that the file should have after uncompression. |
| private static boolean | |
| public static boolean | Returns: true if the file name has a common xz suffix, false otherwisename of a file fileName)
Deprecated
Use
Detects common xz suffixes in the given file name.
isCompressedFileName(String).
|
| public static boolean | Returns: true if the file name has a common xz suffix, false otherwisename of a file fileName)Detects common xz suffixes in the given file name. |
| public static boolean | Returns: true if the classes required to support XZ compression are availableAre the classes required to support XZ compression available? |
| public static boolean | Returns: true if signature matches the .xz magic bytes, false otherwisethe bytes to check signature, final int the number of bytes to check length)Checks if the signature matches what is expected for a .xz file. |
| public static void | setCacheXZAvailablity(final boolean
whether to cache the result doCache)Whether to cache the result of the XZ for Java check. |
| cachedXZAvailability | back to summary |
|---|---|
| private static volatile XZUtils. | |
| fileNameUtil | back to summary |
|---|---|
| private static final FileNameUtil fileNameUtil | |
| HEADER_MAGIC | back to summary |
|---|---|
| private static final byte[] HEADER_MAGIC XZ Header Magic Bytes begin a XZ file.
This is a copy of | |
| XZUtils | back to summary |
|---|---|
| private XZUtils() Private constructor to prevent instantiation of this utility class. | |
| getCachedXZAvailability | back to summary |
|---|---|
| pack-priv static XZUtils. | |
| getCompressedFilename | back to summary |
|---|---|
| public static String getCompressedFilename(final String fileName)
Deprecated Maps the given file name to the name that the file should have after compression with xz. Common file types with custom suffixes for compressed versions are automatically detected and correctly mapped. For example the name "package.tar" is mapped to "package.txz". If no custom mapping is applicable, then the default ".xz" suffix is appended to the file name. | |
| getCompressedFileName | back to summary |
|---|---|
| public static String getCompressedFileName(final String fileName) Maps the given file name to the name that the file should have after compression with xz. Common file types with custom suffixes for compressed versions are automatically detected and correctly mapped. For example the name "package.tar" is mapped to "package.txz". If no custom mapping is applicable, then the default ".xz" suffix is appended to the file name. | |
| getUncompressedFilename | back to summary |
|---|---|
| public static String getUncompressedFilename(final String fileName)
Deprecated Maps the given name of a xz-compressed file to the name that the file should have after uncompression. Commonly used file type specific suffixes like ".txz" are automatically detected and correctly mapped. For example the name "package.txz" is mapped to "package.tar". And any file names with the generic ".xz" suffix (or any other generic xz suffix) is mapped to a name without that suffix. If no xz suffix is detected, then the file name is returned unmapped. | |
| getUncompressedFileName | back to summary |
|---|---|
| public static String getUncompressedFileName(final String fileName) Maps the given name of a xz-compressed file to the name that the file should have after uncompression. Commonly used file type specific suffixes like ".txz" are automatically detected and correctly mapped. For example the name "package.txz" is mapped to "package.tar". And any file names with the generic ".xz" suffix (or any other generic xz suffix) is mapped to a name without that suffix. If no xz suffix is detected, then the file name is returned unmapped. | |
| internalIsXZCompressionAvailable | back to summary |
|---|---|
| private static boolean internalIsXZCompressionAvailable() | |
| isCompressedFilename | back to summary |
|---|---|
| public static boolean isCompressedFilename(final String fileName)
Deprecated Detects common xz suffixes in the given file name.
| |
| isCompressedFileName | back to summary |
|---|---|
| public static boolean isCompressedFileName(final String fileName) Detects common xz suffixes in the given file name.
| |
| isXZCompressionAvailable | back to summary |
|---|---|
| public static boolean isXZCompressionAvailable() Are the classes required to support XZ compression available?
| |
| matches | back to summary |
|---|---|
| public static boolean matches(final byte[] signature, final int length) Checks if the signature matches what is expected for a .xz file.
This is more or less a copy of the version found in
| |
| setCacheXZAvailablity | back to summary |
|---|---|
| public static void setCacheXZAvailablity(final boolean doCache) Whether to cache the result of the XZ for Java check.
This defaults to
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final XZUtils. | |
| public static final XZUtils. | |
| public static final XZUtils. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static XZUtils. | |
| public static XZUtils. |
| CACHED_AVAILABLE | back to summary |
|---|---|
| public static final XZUtils. | |
| CACHED_UNAVAILABLE | back to summary |
|---|---|
| public static final XZUtils. | |
| DONT_CACHE | back to summary |
|---|---|
| public static final XZUtils. | |
| CachedAvailability | back to summary |
|---|---|
| private CachedAvailability() | |
| valueOf | back to summary |
|---|---|
| public static XZUtils. | |
| values | back to summary |
|---|---|
| public static XZUtils. | |