package com.nelsonjrodrigues.pchud.net;

import static java.lang.Byte.toUnsignedInt;



public class Extractor {

    private byte[] buffer;
    private int offset;
    private int length;

    public Extractor(byte[] buffer, int offset, int length) {
        this.buffer = buffer;
        this.offset = offset;
        this.length = length;
    }

    public int u8() {
        if (offset > length) {
            throw new ArrayIndexOutOfBoundsException();
        }
        return toUnsignedInt(buffer[offset++]);
    }

    public int u16() {
        return u8() ^
               u8() << 8;
    }

    public float f32() {
        return Float.intBitsToFloat(u8() ^
                                    u8() << 8 ^
                                    u8() << 16 ^
                                    u8() << 24);
    }

}

@@ -38,55 +38,8 @@
 t;%0A%0A
-import static java.lang.Byte.toUnsignedInt;%0A%0A%0A%0A
 publ
@@ -429,16 +429,21 @@
  return 
+Byte.
 toUnsign

Remove static import, code is more readable like this