open fun toString(): String
Gets the curent contents of this byte stream as a string.
See Also
java.io.ByteArrayOutputStream#toString()
open fun toString(enc: String!): String!
Gets the curent contents of this byte stream as a string using the specified encoding.
enc
- String!: the name of the character encoding
UnsupportedEncodingException
- if the encoding is not supported
Return
String!: the string converted from the byte array