Code example for RandomAccessFile

Methods: readInt

0
    } 
 
    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. 
         */