All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.csveed.bean.conversion.ByteArrayConverter Maven / Gradle / Ivy

Go to download

Java toolkit for mapping CSV-to-Bean mapping and vice versa. Redirection to Introduction in 5 seconds!

There is a newer version: 0.8.2
Show newest version
package org.csveed.bean.conversion;

public class ByteArrayConverter extends AbstractConverter {

    @Override
    public byte[] fromString(String text) throws Exception {
        return text != null ? text.getBytes() : null;
    }

    @Override
    public Class getType() {
        return byte[].class;
    }

//    @Override
//    public String toString(byte[] value) throws Exception {
//        return value != null ? new String(value) : "";
//    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy