ByteArrayOutputStream.WriteTo(Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the complete contents of this ByteArrayOutputStream
to
the specified output stream argument, as if by calling the output
stream's write method using out.write(buf, 0, count)
.
[Android.Runtime.Register("writeTo", "(Ljava/io/OutputStream;)V", "GetWriteTo_Ljava_io_OutputStream_Handler")]
public virtual void WriteTo (System.IO.Stream out);
[<Android.Runtime.Register("writeTo", "(Ljava/io/OutputStream;)V", "GetWriteTo_Ljava_io_OutputStream_Handler")>]
abstract member WriteTo : System.IO.Stream -> unit
override this.WriteTo : System.IO.Stream -> unit
Parameters
- out
- Stream
the output stream to which to write the data.
- Attributes
Exceptions
if an error occurs while writing to out
.
Remarks
Writes the complete contents of this ByteArrayOutputStream
to the specified output stream argument, as if by calling the output stream's write method using out.write(buf, 0, count)
.
Java documentation for java.io.ByteArrayOutputStream.writeTo(java.io.OutputStream)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.