com.firefly.utils.json.serializer.ShortArraySerializer Maven / Gradle / Ivy
package com.firefly.utils.json.serializer;
import java.io.IOException;
import com.firefly.utils.json.JsonWriter;
public class ShortArraySerializer extends SimpleArraySerializer {
public ShortArraySerializer(boolean primitive) {
super(primitive);
}
@Override
public void convertTo(JsonWriter writer, Object obj) throws IOException {
if(primitive) {
writer.writeShortArray((short[])obj);
} else {
writer.writeShortArray((Short[])obj);
}
}
}