Code example for RandomAccessFile

Methods: readShort

0
    public int readRawByte() throws IOException { 
        return ttf.readByte() & 255;
    } 
 
    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;