Code example for RandomAccessFile

Methods: readUnsignedShort

0
    public short readShort() throws IOException { 
        return ttf.readShort();
    } 
 
    public int readUShort() throws IOException { 
        return ttf.readUnsignedShort();
    } 
 
    public int readLong() throws IOException { 
        return ttf.readInt();
    } 
 
    public long readULong() throws IOException { 
        byte[] temp = new byte[4];
        ttf.readFully(temp);
        long l = 0;
        long weight = 1;
        for (int i = 0; i < temp.length; i++) {
            // l |= (temp[3-i]&255) << (8*i); 
            l += (temp[3 - i] & 255) * weight;
Experience pair programming with AI  Get Codota for Java