Package net.lingala.zip4j.util
Class Zip4jUtil
java.lang.Object
net.lingala.zip4j.util.Zip4jUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]convertCharArrayToByteArray(char[] charArray, boolean useUtf8Charset) static booleanstatic longdosToExtendedEpochTme(long dosTime) static longepochToExtendedDosTime(long time) static CompressionMethodgetCompressionMethod(AbstractFileHeader localFileHeader) static booleanstatic booleanstatic intreadFully(InputStream inputStream, byte[] bufferToReadInto) static intreadFully(InputStream inputStream, byte[] b, int offset, int length)
-
Constructor Details
-
Zip4jUtil
public Zip4jUtil()
-
-
Method Details
-
isStringNullOrEmpty
-
isStringNotNullAndNotEmpty
-
createDirectoryIfNotExists
- 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
- Throws:
IOException
-
readFully
public static int readFully(InputStream inputStream, byte[] b, int offset, int length) throws IOException - Throws:
IOException
-