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

com.firefly.utils.json.serializer.ByteArraySerializer Maven / Gradle / Ivy

There is a newer version: 4.0.3.2
Show newest version
package com.firefly.utils.json.serializer;

import java.io.IOException;

import com.firefly.utils.codec.Base64Utils;
import com.firefly.utils.json.JsonWriter;
import com.firefly.utils.json.Serializer;

public class ByteArraySerializer implements Serializer {

	@Override
	public void convertTo(JsonWriter writer, Object obj)
			throws IOException {
		writer.writeStringWithQuote(Base64Utils.encodeToString((byte[])obj));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy