private final String bufferToString ( byte [ ] str ) { String string = null ; if ( str != null ) { string = AMF . CHARSET . decode ( ByteBuffer . wrap ( str ) ) . toString ( ) ; log . debug ( "String: {}" , string ) ; } else { log . warn ( "ByteBuffer was null attempting to read String" ) ; } return string ; }
Converts the bytes into a string .