public class Zip4jUtil extends Object
Constructor and Description |
---|
Zip4jUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
convertCharArrayToByteArray(char[] charArray) |
static boolean |
createDirectoryIfNotExists(File file) |
static long |
dosToJavaTme(long dosTime) |
static CompressionMethod |
getCompressionMethod(LocalFileHeader localFileHeader) |
static boolean |
isStringNotNullAndNotEmpty(String str) |
static long |
javaToDosTime(long time) |
static int |
readFully(InputStream inputStream,
byte[] bufferToReadInto) |
static int |
readFully(InputStream inputStream,
byte[] b,
int offset,
int length) |
public static boolean isStringNotNullAndNotEmpty(String str)
public static boolean createDirectoryIfNotExists(File file) throws ZipException
ZipException
public static long javaToDosTime(long time)
public static long dosToJavaTme(long dosTime)
public static byte[] convertCharArrayToByteArray(char[] charArray)
public static CompressionMethod getCompressionMethod(LocalFileHeader localFileHeader)
public static int readFully(InputStream inputStream, byte[] bufferToReadInto) throws IOException
IOException
public static int readFully(InputStream inputStream, byte[] b, int offset, int length) throws IOException
IOException
Copyright © 2020. All rights reserved.