Package net.lingala.zip4j.util
Class Raw
- java.lang.Object
-
- net.lingala.zip4j.util.Raw
-
public class Raw extends Object
-
-
Constructor Summary
Constructors Constructor Description Raw()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static bytebitArrayToByte(int[] bitArray)static byte[]convertCharArrayToByteArray(char[] charArray)Converts a char array to byte arraystatic voidprepareBuffAESIVBytes(byte[] buff, int nonce, int length)static intreadIntLittleEndian(byte[] b, int off)static intreadLeInt(DataInput di, byte[] b)static longreadLongLittleEndian(byte[] array, int pos)static shortreadShortBigEndian(byte[] array, int pos)static intreadShortLittleEndian(byte[] b, int off)static byte[]toByteArray(int in)static byte[]toByteArray(int in, int outSize)static voidwriteIntLittleEndian(byte[] array, int pos, int value)static voidwriteLongLittleEndian(byte[] array, int pos, long value)static voidwriteShortLittleEndian(byte[] array, int pos, short value)
-
-
-
Method Detail
-
readLongLittleEndian
public static long readLongLittleEndian(byte[] array, int pos)
-
readLeInt
public static int readLeInt(DataInput di, byte[] b) throws ZipException
- Throws:
ZipException
-
readShortLittleEndian
public static int readShortLittleEndian(byte[] b, int off)
-
readShortBigEndian
public static final short readShortBigEndian(byte[] array, int pos)
-
readIntLittleEndian
public static int readIntLittleEndian(byte[] b, int off)
-
toByteArray
public static byte[] toByteArray(int in, int outSize)
-
toByteArray
public static byte[] toByteArray(int in)
-
writeShortLittleEndian
public static final void writeShortLittleEndian(byte[] array, int pos, short value)
-
writeIntLittleEndian
public static final void writeIntLittleEndian(byte[] array, int pos, int value)
-
writeLongLittleEndian
public static void writeLongLittleEndian(byte[] array, int pos, long value)
-
bitArrayToByte
public static byte bitArrayToByte(int[] bitArray) throws ZipException- Throws:
ZipException
-
prepareBuffAESIVBytes
public static void prepareBuffAESIVBytes(byte[] buff, int nonce, int length)
-
convertCharArrayToByteArray
public static byte[] convertCharArrayToByteArray(char[] charArray)
Converts a char array to byte array- Parameters:
charArray-- Returns:
- byte array representation of the input char array
-
-