Java.IO.ByteArrayOutputStream Members

The members of Java.IO.ByteArrayOutputStream are listed below.

See Also: Inherited members from Java.IO.OutputStream

Public Constructors

Constructs a new ByteArrayOutputStream with a default size of 32 bytes.
Constructs a new ByteArrayOutputStream with a default size of size bytes.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

BufIList<byte>. The byte array containing the bytes written.
Countint. The number of bytes written.
[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Reset()
Resets this stream to the beginning of the underlying byte array.
Size() : int
Returns the total number of bytes written to this stream so far.
ToByteArray() : byte[]
Returns the contents of this ByteArrayOutputStream as a byte array.
ToString(int) : string
Returns the contents of this ByteArrayOutputStream as a string.
ToString(string) : string
Returns the contents of this ByteArrayOutputStream as a string converted according to the encoding declared in charsetName.
override
Write(int)
Writes the specified byte oneByte to the OutputStream.
WriteTo(System.IO.Stream)
Takes the contents of this stream and writes it to the output stream out.
WriteToAsync(System.IO.Stream) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.