com.javaoffers.batis.modelhelper.convert.ByteArray2StringConvert Maven / Gradle / Ivy
The newest version!
package com.javaoffers.batis.modelhelper.convert;
public class ByteArray2StringConvert extends AbstractConver {
@Override
public String convert(byte[] bytes) {
return new String(bytes);
}
}
class ByteArray2StringConvert2 extends AbstractConver {
@Override
public String convert(Byte[] bytes) {
byte[] bs = new byte[bytes.length];
if(bytes.length>0){
int i = 0;
for(Byte b : bytes){
bs[i] = b;
i++;
}
}
return new String(bs);
}
public ByteArray2StringConvert2() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy