Code example for RandomAccessFile

Methods: read, readByte, readInt, seek

0
                    { 
                        return null; 
                    } 
                    else 
                    { 
                        this.dataFile.seek((long)(var4 * 4096));
                        int var6 = this.dataFile.readInt();
 
                        if (var6 > 4096 * var5)
                        { 
                            return null; 
                        } 
                        else if (var6 <= 0)
                        { 
                            return null; 
                        } 
                        else 
                        { 
                            byte var7 = this.dataFile.readByte();
                            byte[] var8;
 
                            if (var7 == 1)
                            { 
                                var8 = new byte[var6 - 1];
                                this.dataFile.read(var8);
                                return new DataInputStream(new BufferedInputStream(new GZIPInputStream(new ByteArrayInputStream(var8))));
                            } 
                            else if (var7 == 2)
                            { 
                                var8 = new byte[var6 - 1];
                                this.dataFile.read(var8);
                                return new DataInputStream(new BufferedInputStream(new InflaterInputStream(new ByteArrayInputStream(var8))));
                            } 
                            else 
                            { 
                                return null;