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 booleancreateDirectoryIfNotExists(File file)static longdosToExtendedEpochTme(long dosTime)static longepochToExtendedDosTime(long time)static CompressionMethodgetCompressionMethod(AbstractFileHeader localFileHeader)static booleanisStringNotNullAndNotEmpty(String str)static booleanisStringNullOrEmpty(String str)static intreadFully(InputStream inputStream, byte[] bufferToReadInto)static intreadFully(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
-
-