Package net.lingala.zip4j.util
Class Zip4jUtil
- java.lang.Object
-
- net.lingala.zip4j.util.Zip4jUtil
-
public class Zip4jUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description Zip4jUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
convertCharArrayToByteArray(char[] charArray, boolean useUtf8Charset)
static boolean
createDirectoryIfNotExists(File file)
static long
dosToExtendedEpochTme(long dosTime)
static long
epochToExtendedDosTime(long time)
static CompressionMethod
getCompressionMethod(AbstractFileHeader localFileHeader)
static boolean
isStringNotNullAndNotEmpty(String str)
static boolean
isStringNullOrEmpty(String str)
static int
readFully(InputStream inputStream, byte[] bufferToReadInto)
static int
readFully(InputStream inputStream, byte[] b, int offset, int length)
-
-
-
Method Detail
-
isStringNullOrEmpty
public static boolean isStringNullOrEmpty(String str)
-
isStringNotNullAndNotEmpty
public static boolean isStringNotNullAndNotEmpty(String str)
-
createDirectoryIfNotExists
public static boolean createDirectoryIfNotExists(File file) throws ZipException
- Throws:
ZipException
-
epochToExtendedDosTime
public static long epochToExtendedDosTime(long time)
-
dosToExtendedEpochTme
public static long dosToExtendedEpochTme(long dosTime)
-
convertCharArrayToByteArray
public static byte[] convertCharArrayToByteArray(char[] charArray, boolean useUtf8Charset)
-
getCompressionMethod
public static CompressionMethod getCompressionMethod(AbstractFileHeader localFileHeader) throws ZipException
- Throws:
ZipException
-
readFully
public static int readFully(InputStream inputStream, byte[] bufferToReadInto) throws IOException
- Throws:
IOException
-
readFully
public static int readFully(InputStream inputStream, byte[] b, int offset, int length) throws IOException
- Throws:
IOException
-
-