net.lingala.zip4j.util
Class Raw

java.lang.Object
  extended by net.lingala.zip4j.util.Raw

public class Raw
extends Object


Constructor Summary
Raw()
           
 
Method Summary
static byte bitArrayToByte(int[] bitArray)
           
static byte[] convertCharArrayToByteArray(char[] charArray)
          Converts a char array to byte array
static void prepareBuffAESIVBytes(byte[] buff, int nonce, int length)
           
static int readIntLittleEndian(byte[] b, int off)
           
static int readLeInt(DataInput di, byte[] b)
           
static long readLongLittleEndian(byte[] array, int pos)
           
static short readShortBigEndian(byte[] array, int pos)
           
static int readShortLittleEndian(byte[] b, int off)
           
static byte[] toByteArray(int in)
           
static byte[] toByteArray(int in, int outSize)
           
static void writeIntLittleEndian(byte[] array, int pos, int value)
           
static void writeLongLittleEndian(byte[] array, int pos, long value)
           
static void writeShortLittleEndian(byte[] array, int pos, short value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Raw

public Raw()
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


Copyright © 2012. All Rights Reserved.