Code example for RandomAccessFile

Methods: read, readByte, readInt, seek

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