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

com.tosan.tools.tracker.starter.serialization.ByteArraySerializer Maven / Gradle / Ivy

The newest version!
package com.tosan.tools.tracker.starter.serialization;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

/**
 * @author M.khoshnevisan
 * @since 7/25/2023
 */
public class ByteArraySerializer extends JsonSerializer {

    public ByteArraySerializer() {
    }

    @Override
    public void serialize(byte[] value, JsonGenerator jsonGenerator, SerializerProvider serializers) throws IOException {
        jsonGenerator.writeString("*MASKED");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy