Code example for DataInput

Methods: readUnsignedByte

0
        return DataInputStream.readUTF(this);
    } 
 
    public int readUnsignedByte() throws IOException 
    { 
        int i = source.readUnsignedByte();
        bytesRead += 1;
        return i;
    } 
 
    public int readUnsignedShort() throws IOException 
    { 
        int i = source.readUnsignedShort();
        bytesRead += 2;
        return i;
    } 
 
    public int skipBytes(int n) throws IOException
    { 
        int skipped = source.skipBytes(n);
        bytesRead += skipped;