public String getStringValueByType()

in src/main/java/com/aliyun/mns/model/MessagePropertyValue.java [98:113]


    public String getStringValueByType() {
        try {
            switch (dataType) {
                case NUMBER:
                case STRING:
                case BOOLEAN:
                    return stringValue;
                case BINARY:
                    return new String(binaryValue, DEFAULT_CHARSET);
                default:
                    return "";
            }
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException("Not support encoding: " + DEFAULT_CHARSET);
        }
    }