org.boon.slumberdb.serialization.ByteArrayToStringConverter Maven / Gradle / Ivy
package org.boon.slumberdb.serialization;
import org.boon.core.Function;
import java.nio.charset.StandardCharsets;
/**
* Created by Richard on 4/9/14.
*/
public class ByteArrayToStringConverter implements Function {
@Override
public String apply(byte[] bytes) {
return new String(bytes, StandardCharsets.UTF_8);
}
}