Methods Summary |
---|
public boolean | readBoolean()Return {@link #readByte()} == 0
return ( 0 == readByte() );
|
public byte | readByte()Invokes the delegate's read() method.
return (byte)in.read();
|
public char | readChar()Reads a character delegating to {@link #readShort()}.
return (char)readShort();
|
public double | readDouble()Delegates to {@link EndianUtils#readSwappedDouble(InputStream)}.
return EndianUtils.readSwappedDouble( in );
|
public float | readFloat()Delegates to {@link EndianUtils#readSwappedFloat(InputStream)}.
return EndianUtils.readSwappedFloat( in );
|
public void | readFully(byte[] data)Invokes the delegate's read(byte[] data, int, int) method.
readFully( data, 0, data.length );
|
public void | readFully(byte[] data, int offset, int length)Invokes the delegate's read(byte[] data, int, int) method.
int remaining = length;
while( remaining > 0 )
{
int location = offset + ( length - remaining );
int count = read( data, location, remaining );
if( -1 == count )
{
throw new EOFException();
}
remaining -= count;
}
|
public int | readInt()Delegates to {@link EndianUtils#readSwappedInteger(InputStream)}.
return EndianUtils.readSwappedInteger( in );
|
public java.lang.String | readLine()Not currently supported - throws {@link UnsupportedOperationException}.
throw new UnsupportedOperationException(
"Operation not supported: readLine()" );
|
public long | readLong()Delegates to {@link EndianUtils#readSwappedLong(InputStream)}.
return EndianUtils.readSwappedLong( in );
|
public short | readShort()Delegates to {@link EndianUtils#readSwappedShort(InputStream)}.
return EndianUtils.readSwappedShort( in );
|
public java.lang.String | readUTF()Not currently supported - throws {@link UnsupportedOperationException}.
throw new UnsupportedOperationException(
"Operation not supported: readUTF()" );
|
public int | readUnsignedByte()Invokes the delegate's read() method.
return in.read();
|
public int | readUnsignedShort()Delegates to {@link EndianUtils#readSwappedUnsignedShort(InputStream)}.
return EndianUtils.readSwappedUnsignedShort( in );
|
public int | skipBytes(int count)Invokes the delegate's skip(int) method.
return (int)in.skip( count );
|