| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static volatile LZMAUtils. | |
| private static final FileNameUtil | |
| private static final byte[] | HEADER_MAGIC
LZMA Header Magic Bytes begin a LZMA file. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static LZMAUtils. | |
| 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 LZMA.
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 LZMA. |
| public static String | Returns: name of the corresponding uncompressed filename of a file fileName)
Deprecated
Use
Maps the given name of a LZMA-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 LZMA-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 LZMA suffix, false otherwisename of a file fileName)
Deprecated
Use
Detects common LZMA suffixes in the given file name.
isCompressedFileName(String).
|
| public static boolean | Returns: true if the file name has a common LZMA suffix, false otherwisename of a file fileName)Detects common LZMA suffixes in the given file name. |
| public static boolean | Returns: true if the classes required to support LZMA compression are availableAre the classes required to support LZMA compression available? |
| public static boolean | Returns: true if signature matches the .lzma 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 .lzma file. |
| public static void | setCacheLZMAAvailablity(final boolean
whether to cache the result doCache)Whether to cache the result of the LZMA check. |
| cachedLZMAAvailability | back to summary |
|---|---|
| private static volatile LZMAUtils. | |
| fileNameUtil | back to summary |
|---|---|
| private static final FileNameUtil fileNameUtil | |
| HEADER_MAGIC | back to summary |
|---|---|
| private static final byte[] HEADER_MAGIC LZMA Header Magic Bytes begin a LZMA file. | |
| LZMAUtils | back to summary |
|---|---|
| private LZMAUtils() Private constructor to prevent instantiation of this utility class. | |
| getCachedLZMAAvailability | back to summary |
|---|---|
| pack-priv static LZMAUtils. | |
| 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 LZMA. | |
| 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 LZMA. | |
| getUncompressedFilename | back to summary |
|---|---|
| public static String getUncompressedFilename(final String fileName)
Deprecated Maps the given name of a LZMA-compressed file to the name that the file should have after uncompression. Any file names with the generic ".lzma" suffix (or any other generic LZMA suffix) is mapped to a name without that suffix. If no LZMA 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 LZMA-compressed file to the name that the file should have after uncompression. Any file names with the generic ".lzma" suffix (or any other generic LZMA suffix) is mapped to a name without that suffix. If no LZMA suffix is detected, then the file name is returned unmapped. | |
| internalIsLZMACompressionAvailable | back to summary |
|---|---|
| private static boolean internalIsLZMACompressionAvailable() | |
| isCompressedFilename | back to summary |
|---|---|
| public static boolean isCompressedFilename(final String fileName)
Deprecated Detects common LZMA suffixes in the given file name.
| |
| isCompressedFileName | back to summary |
|---|---|
| public static boolean isCompressedFileName(final String fileName) Detects common LZMA suffixes in the given file name.
| |
| isLZMACompressionAvailable | back to summary |
|---|---|
| public static boolean isLZMACompressionAvailable() Are the classes required to support LZMA 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 .lzma file.
| |
| setCacheLZMAAvailablity | back to summary |
|---|---|
| public static void setCacheLZMAAvailablity(final boolean doCache) Whether to cache the result of the LZMA check.
This defaults to
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final LZMAUtils. | |
| public static final LZMAUtils. | |
| public static final LZMAUtils. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LZMAUtils. | |
| public static LZMAUtils. |
| CACHED_AVAILABLE | back to summary |
|---|---|
| public static final LZMAUtils. | |
| CACHED_UNAVAILABLE | back to summary |
|---|---|
| public static final LZMAUtils. | |
| DONT_CACHE | back to summary |
|---|---|
| public static final LZMAUtils. | |
| CachedAvailability | back to summary |
|---|---|
| private CachedAvailability() | |
| valueOf | back to summary |
|---|---|
| public static LZMAUtils. | |
| values | back to summary |
|---|---|
| public static LZMAUtils. | |