62
edits
Changes
→Alternative: Converter: add a second example
converter = new Converter('iso-8859-1', 'utf-32')
output = converter.push(input) // input is a ByteString, and output too
converter.close()
Another example:
converter = new Converter('utf-32', 'utf-8')
output = new ByteArray()
while (input = readSomeByteFromSomewhere()) {
converter.push(input, output)
}
converter.close()