本文整理匯總了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;
}