Code example for RandomAccessFile

Methods: readInt

    ByteBuffer mLEByteBuffer = ByteBuffer.allocate(4);
    private int read4LE() throws EOFException, IOException { 
        return swapEndian(mZipFile.readInt());
     * Parse the Zip archive, verifying its contents and initializing internal 
     * data structures. 
    void mapCentralDirectory() throws IOException 
        long readAmount = kMaxEOCDSearch;
        if (readAmount > mFileLength)
            readAmount = mFileLength;
         * Make sure this is a Zip archive. 
Stop searching for code, let great code find you!  Add Codota to your java IDE