public class LZMAUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCompressedFilename(java.lang.String fileName)
Maps the given file name to the name that the file should have after
compression with lzma.
|
static java.lang.String |
getUncompressedFilename(java.lang.String fileName)
Maps the given name of a lzma-compressed file to the name that
the file should have after uncompression.
|
static boolean |
isCompressedFilename(java.lang.String fileName)
Detects common lzma suffixes in the given file name.
|
static boolean |
isLZMACompressionAvailable()
Are the classes required to support LZMA compression available?
|
static boolean |
matches(byte[] signature,
int length)
Checks if the signature matches what is expected for a .lzma file.
|
static void |
setCacheLZMAAvailablity(boolean doCache)
Whether to cache the result of the LZMA check.
|
public static boolean matches(byte[] signature,
int length)
signature - the bytes to checklength - the number of bytes to checkpublic static boolean isLZMACompressionAvailable()
public static boolean isCompressedFilename(java.lang.String fileName)
fileName - name of a filetrue if the file name has a common lzma suffix,
false otherwisepublic static java.lang.String getUncompressedFilename(java.lang.String fileName)
fileName - name of a filepublic static java.lang.String getCompressedFilename(java.lang.String fileName)
fileName - name of a filepublic static void setCacheLZMAAvailablity(boolean doCache)
This defaults to false in an OSGi environment and true otherwise.
doCache - whether to cache the resultCopyright © 2010 - 2023 Adobe. All Rights Reserved