com.abubusoft.kripton.persistence.JacksonWrapperParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kripton-core Show documentation
Show all versions of kripton-core Show documentation
Kripton Persistence Library - core module
package com.abubusoft.kripton.persistence;
import java.io.IOException;
import com.abubusoft.kripton.BinderType;
import com.abubusoft.kripton.exception.KriptonRuntimeException;
import com.fasterxml.jackson.core.JsonParser;
public class JacksonWrapperParser implements ParserWrapper {
public JsonParser jacksonParser;
public JacksonWrapperParser(JsonParser parser, BinderType supportedFormat) {
this.jacksonParser = parser;
}
@Override
public void close() {
try {
if (!jacksonParser.isClosed())
jacksonParser.close();
} catch (IOException e) {
e.printStackTrace();
throw(new KriptonRuntimeException(e));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy