de.eldoria.eldoutilities.config.parsing.serializer.LevelSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-configuration Show documentation
Show all versions of jackson-configuration Show documentation
Configuration file wrapper for the jackson-bukkit framework
The newest version!
/*
* SPDX-License-Identifier: LGPL-3.0-or-later
*
* Copyright (C) EldoriaRPG Team and Contributor
*/
package de.eldoria.eldoutilities.config.parsing.serializer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.util.logging.Level;
public class LevelSerializer extends JsonSerializer {
@Override
public void serialize(Level value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeString(value.getName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy