Java.IO.PushbackInputStream.Unread Method
Pushes all the bytes in buffer back to this stream.

Syntax

[Android.Runtime.Register("unread", "([B)V", "GetUnread_arrayBHandler")]
public virtual void Unread (byte[] buffer)

Parameters

buffer
the buffer containing the bytes to push back to this stream.

Exceptions

TypeReason
Java.IO.IOExceptionif the free space in the internal pushback buffer is not sufficient to store the contents of buffer.

Remarks

Pushes all the bytes in buffer back to this stream. The bytes are pushed back in such a way that the next byte read from this stream is buffer[0], then buffer[1] and so on.

If this stream's internal pushback buffer cannot store the entire contents 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