Java.IO.PushbackReader.Unread Method
Pushes a subset of the characters in buffer back to this reader.

Syntax

[Android.Runtime.Register("unread", "([CII)V", "GetUnread_arrayCIIHandler")]
public virtual void Unread (char[] buffer, int offset, int count)

Parameters

buffer
the buffer containing the characters to push back to this reader.
offset
the index of the first byte in buffer to push back.
length
the number of bytes to push back.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif offset or count , or if offset + count is greater than the length of buffer.
Java.IO.IOExceptionif this reader is closed or the free space in the internal pushback buffer is not sufficient to store the selected contents of buffer.
Java.Lang.NullPointerExceptionif buffer is null.

Remarks

Pushes a subset of the characters in buffer back to this reader. The subset is defined by the start position offset within buffer and the number of characters specified by length. The bytes are pushed back in such a way that the next byte read from this stream is buffer[offset], then buffer[1] and so on.

If this stream's internal pushback buffer cannot store the selected subset of buffer, an IOException is thrown. Parts of buffer may have already been copied to the pushback buffer when the exception is thrown.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1