Java ByteArrayOutputStream writeTo() methodThe writeTo() method of Java ByteArrayOutputStream class is used to write the complete contents of this byte array output to the specified output stream argument. Syntax:Parameters:out - The specified output stream to be written to. ThrowsIOException - if an I/O error occurs. ReturnNA Example 1Test it NowOutput: EFGH Example 2Test it NowOutput: ABCD
Next TopicJava ByteArrayOutputStream Class
|