use of org.whole.lang.json.util.JSONLDEntityDecoder in project whole by wholeplatform.
the class JSONLDPersistenceKit method doReadModel.
protected IEntity doReadModel(IPersistenceProvider pp) throws Exception {
JsonFactory factory = new JsonFactory();
JsonParser parser = factory.createParser(pp.getInputStream());
parser.disable(Feature.AUTO_CLOSE_SOURCE);
try {
return new JSONLDEntityDecoder().clone(new JSONParserTemplateFactory(parser).create());
} finally {
parser.close();
}
}
Aggregations