public final String getMessageContentAsString ( ) throws StorageException { if ( this . messageType == QueueMessageType . RAW_STRING ) { return this . messageContent ; } else { if ( Utility . isNullOrEmpty ( this . messageContent ) ) { return null ; } try { return new String ( Base64 . decode ( this . messageContent ) , Constants . UTF8_CHARSET ) ; } catch ( final UnsupportedEncodingException e ) { throw Utility . generateNewUnexpectedStorageException ( e ) ; } } }
Gets the content of the message as a string .