本文整理汇总了Java中com.fasterxml.jackson.core.json.async.NonBlockingJsonParser类的典型用法代码示例。如果您正苦于以下问题:Java NonBlockingJsonParser类的具体用法?Java NonBlockingJsonParser怎么用?Java NonBlockingJsonParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NonBlockingJsonParser类属于com.fasterxml.jackson.core.json.async包,在下文中一共展示了NonBlockingJsonParser类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createNonBlockingByteArrayParser
import com.fasterxml.jackson.core.json.async.NonBlockingJsonParser; //导入依赖的package包/类
@Override
public JsonParser createNonBlockingByteArrayParser(ObjectReadContext readCtxt) throws IOException
{
IOContext ioCtxt = _createContext(null, false);
ByteQuadsCanonicalizer can = _byteSymbolCanonicalizer.makeChild(_factoryFeatures);
return new NonBlockingJsonParser(readCtxt, ioCtxt,
readCtxt.getParserFeatures(_parserFeatures), can);
}
示例2: createNonBlockingParser
import com.fasterxml.jackson.core.json.async.NonBlockingJsonParser; //导入依赖的package包/类
@Override
public NonBlockingParser createNonBlockingParser(SurfingContext context) {
try {
NonBlockingJsonParser jp = (NonBlockingJsonParser) factory.createNonBlockingByteArrayParser();
return new JacksonNonblockingParser(jp, context);
} catch (IOException e) {
context.getConfig().getErrorHandlingStrategy().handleParsingException(e);
}
return null;
}
示例3: AsyncJsonParser
import com.fasterxml.jackson.core.json.async.NonBlockingJsonParser; //导入依赖的package包/类
public AsyncJsonParser(JsonFactory jsonFactory, Consumer<JsonNode> onNodeDone) throws IOException {
this.onNodeDone = onNodeDone;
this.parser = (NonBlockingJsonParser) jsonFactory.createNonBlockingByteArrayParser();
}
示例4: JacksonNonblockingParser
import com.fasterxml.jackson.core.json.async.NonBlockingJsonParser; //导入依赖的package包/类
JacksonNonblockingParser(NonBlockingJsonParser jsonParser, SurfingContext context) {
super(jsonParser, context);
this.nonBlockingJsonParser = jsonParser;
}