ByteArrayOutputStream Members
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

ByteArrayOutputStream Members

Visual Studio 2005

Extends the OutputStream class in which the data is written into a byte array. It contains a buffer that automatically grows as data is written to it. It also contains methods to retrieve and convert data.

The following tables list the members exposed by the ByteArrayOutputStream type.

Public Constructors

Name Description

ByteArrayOutputStream

Overloaded.  

Public Fields

Name Description

buf

The data buffer of the ByteArrayOutputStream object.

count

The counter that stores the number of bytes in the ByteArrayOutputStream buffer.

Public Methods

Name Description

close 

(inherited from OutputStream )

equals 

(inherited from Object )

flush 

(inherited from OutputStream )

hashCode 

(inherited from Object )

getClass 

(inherited from Object )

clone 

(inherited from OutputStream )

reset

Resets the count field of the current ByteArrayOutputStream to zero discarding the data that exists in the output stream.

size

Returns the number of the bytes that have been written to the current ByteArrayOutputStream object since its most reset or since it was created, if it has never been reset.

toByteArray

Allocates and returns new byte array and copies the buffer contents to it.

toString

Overridden. Returns the string representation of the buffer's data for the current ByteArrayOutputStream object.

write

Overloaded. Overridden.  

writeTo

Writes the entire contents of the current ByteArrayOutputStream object to a specified output stream.

Protected Methods

Name Description

finalize 

(inherited from Object )

See Also

Show:
© 2016 Microsoft