Method Summary |
|
public void | clearActive() Clears the active region of the string. |
public int | current() Returns the current position. |
public void | jump(int index) Resets the current position of the input stream to the specified index,
and clears the active region. |
public void | readByteArray(byte[] b, int off, int len) Reads a byte array of a specified length from the stream into an existing
array. |
public byte[] | readByteArray(int len) Reads a byte array of a specified length from the stream. |
public byte[] | readByteArray() Reads a byte array consisting of the remainder of the stream (or the
active region, if one is set. |
public byte[] | readCountedString() Reads a counted string from the stream. |
public int | readU16() Reads an unsigned 16 bit value from the stream, as an int. |
public long | readU32() Reads an unsigned 32 bit value from the stream, as a long. |
public int | readU8() Reads an unsigned 8 bit value from the stream, as an int. |
public int | remaining() Returns the number of bytes that can be read from this stream before
reaching the end. |
public void | restore() Restores the input stream to its state before the call to
DNSInput.save . |
public void | save() Saves the current state of the input stream. |
public void | setActive(int len) Marks the following bytes in the stream as active. |