I feel quite confused when looking at java's API regarding string encoding conversion.
The API i found involves converting a string to bytes array or a bytes array to a string. But none of the API that takes a byte array and returns a String takes both the input and the output encoding parameters
Given that i can't find any documentation around the issue, i want to assume that when constructing a string like so 'new String(buffer, encoding)' - the encoding parameter represents the input encoding and the output encoding is constant and set to UTF-16.
Am i right to assume that?