Code example for RandomAccessFile

Methods: readShort

0
        return raf.readLong();
    } 
 
    public short readShort() throws IOException 
    { 
        return raf.readShort();
    } 
 
    public boolean readBoolean() throws IOException 
    { 
        return raf.readBoolean();
    } 
 
    public int skipBytes(int n) throws IOException
    { 
        return raf.skipBytes(n);
    } 
 
    public void readFully(byte[] b) throws IOException
    { 
        raf.readFully(b);