public final String getDecodedString ( ) throws TLVParserException { byte [ ] data = getContent ( ) ; if ( ! ( data . length > 0 && data [ data . length - 1 ] == ' ' ) ) { throw new TLVParserException ( "String must be null terminated" ) ; } try { return Util . decodeString ( data , 0 , data . length - 1 ) ; } catch ( CharacterCodingException e ) { throw new TLVParserException ( "Malformed UTF-8 data" , e ) ; } }
Converts the TLV element content data to UTF - 8 string .