Java Code Examples for com.alibaba.dubbo.common.io.Bytes#base642bytes()

The following examples show how to use com.alibaba.dubbo.common.io.Bytes#base642bytes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GenericJSONConverter.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
@Override
public Object decode(Object jv) throws IOException {
    if (jv instanceof String) return Bytes.base642bytes((String) jv);
    return (byte[]) null;
}
 
Example 2
Source File: Coder.java    From open-capacity-platform with Apache License 2.0 4 votes vote down vote up
public static String decodeBase64(String source) {
    return new String(Bytes.base642bytes(source));
}
 
Example 3
Source File: GenericJSONConverter.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public Object decode(Object jv) throws IOException
{
	if( jv instanceof String ) return Bytes.base642bytes((String)jv);
	return (byte[])null;
}
 
Example 4
Source File: Coder.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static String decodeBase64(String source) {
    return new String(Bytes.base642bytes(source));
}
 
Example 5
Source File: GenericJSONConverter.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public Object decode(Object jv) throws IOException
{
	if( jv instanceof String ) return Bytes.base642bytes((String)jv);
	return (byte[])null;
}
 
Example 6
Source File: Coder.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public static String decodeBase64(String source) {
    return new String(Bytes.base642bytes(source));
}
 
Example 7
Source File: GenericJSONConverter.java    From dubbo3 with Apache License 2.0 4 votes vote down vote up
public Object decode(Object jv) throws IOException
{
	if( jv instanceof String ) return Bytes.base642bytes((String)jv);
	return (byte[])null;
}
 
Example 8
Source File: Coder.java    From dubbo3 with Apache License 2.0 4 votes vote down vote up
public static String decodeBase64(String source) {
    return new String(Bytes.base642bytes(source));
}
 
Example 9
Source File: GenericJSONConverter.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public Object decode(Object jv) throws IOException
{
	if( jv instanceof String ) return Bytes.base642bytes((String)jv);
	return (byte[])null;
}
 
Example 10
Source File: Coder.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static String decodeBase64(String source) {
    return new String(Bytes.base642bytes(source));
}
 
Example 11
Source File: GenericJSONConverter.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public Object decode(Object jv) throws IOException
{
	if( jv instanceof String ) return Bytes.base642bytes((String)jv);
	return (byte[])null;
}
 
Example 12
Source File: Coder.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static String decodeBase64(String source) {
    return new String(Bytes.base642bytes(source));
}