apidocs / com.srv4pos.commons.io / ByteArrayOutputStream / toString

toString

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.

Parameters

enc - String!: the name of the character encoding

Exceptions

UnsupportedEncodingException - if the encoding is not supported

Return
String!: the string converted from the byte array

See Also
java.io.ByteArrayOutputStream#toString(String)