Code example for RandomAccessFile

Methods: readBytereadIntseek

0
                    if (l + i1 > this.sectorFree.size())
                    { 
                        return false; 
                    } 
 
                    this.dataFile.seek((long)(l * 4096));
                    int j1 = this.dataFile.readInt();
 
                    if (j1 > 4096 * i1 || j1 <= 0)
                    { 
                        return false; 
                    } 
 
                    byte b0 = this.dataFile.readByte();
 
                    if (b0 == 1 || b0 == 2)
                    { 
                        return true; 
                    } 
                } 
Connect your IDE to all the code out there  Get Codota for Java