/external/jackson-core/src/main/java/com/fasterxml/jackson/core/json/ |
D | JsonReadFeature.java | 28 ALLOW_JAVA_COMMENTS(false, JsonParser.Feature.ALLOW_COMMENTS), 42 ALLOW_YAML_COMMENTS(false, JsonParser.Feature.ALLOW_YAML_COMMENTS), 56 ALLOW_SINGLE_QUOTES(false, JsonParser.Feature.ALLOW_SINGLE_QUOTES), 67 ALLOW_UNQUOTED_FIELD_NAMES(false, JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES), 81 ALLOW_UNESCAPED_CONTROL_CHARS(false, JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS), 93 …ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER(false, JsonParser.Feature.ALLOW_BACKSLASH_ESCAPING_ANY_CHAR… 108 ALLOW_LEADING_ZEROS_FOR_NUMBERS(false, JsonParser.Feature.ALLOW_NUMERIC_LEADING_ZEROS), 122 …ALLOW_LEADING_DECIMAL_POINT_FOR_NUMBERS(false, JsonParser.Feature.ALLOW_LEADING_DECIMAL_POINT_FOR_… 143 ALLOW_NON_NUMERIC_NUMBERS(false, JsonParser.Feature.ALLOW_NON_NUMERIC_NUMBERS), 162 ALLOW_MISSING_VALUES(false, JsonParser.Feature.ALLOW_MISSING_VALUES), [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | JsonParserTest.java | 43 assertEquals(new LinkedHashMap<String, Object>(), JsonParser.parse("{}")); in emptyObject() 48 assertEquals(new ArrayList<>(), JsonParser.parse("[]")); in emptyArray() 53 assertEquals(Double.valueOf("1"), JsonParser.parse("1")); in intNumber() 58 assertEquals(Double.valueOf("1.2"), JsonParser.parse("1.2")); in doubleNumber() 63 assertEquals(Double.valueOf("9999999999"), JsonParser.parse("9999999999")); in longNumber() 68 assertEquals(true, JsonParser.parse("true")); in booleanValue() 73 assertEquals(null, JsonParser.parse("null")); in nullValue() 80 JsonParser.parse("NaN"); in nanFails() 87 JsonParser.parse("{foo:}"); in objectEarlyEnd() 94 JsonParser.parse("[1, 2, "); in earlyEndArray() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/ |
D | EmptyContentAsTreeTest.java | 7 import com.fasterxml.jackson.core.JsonParser; 28 try (JsonParser p = MAPPER.createParser(EMPTY0)) { in testNullFromEOFWithParserAndMapper() 31 try (JsonParser p = MAPPER.createParser(EMPTY1)) { in testNullFromEOFWithParserAndMapper() 34 try (JsonParser p = MAPPER.createParser(new StringReader(EMPTY0))) { in testNullFromEOFWithParserAndMapper() 37 try (JsonParser p = MAPPER.createParser(new StringReader(EMPTY1))) { in testNullFromEOFWithParserAndMapper() 41 try (JsonParser p = MAPPER.createParser(EMPTY0_BYTES)) { in testNullFromEOFWithParserAndMapper() 44 try (JsonParser p = MAPPER.createParser(EMPTY1_BYTES)) { in testNullFromEOFWithParserAndMapper() 47 try (JsonParser p = MAPPER.createParser(EMPTY1_BYTES, 0, EMPTY1_BYTES.length)) { in testNullFromEOFWithParserAndMapper() 50 try (JsonParser p = MAPPER.createParser(new ByteArrayInputStream(EMPTY0_BYTES))) { in testNullFromEOFWithParserAndMapper() 53 try (JsonParser p = MAPPER.createParser(new ByteArrayInputStream(EMPTY1_BYTES))) { in testNullFromEOFWithParserAndMapper() [all …]
|
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/util/ |
D | JsonParserSequence.java | 22 protected final JsonParser[] _parsers; 59 protected JsonParserSequence(JsonParser[] parsers) { in JsonParserSequence() 66 protected JsonParserSequence(boolean checkForExistingToken, JsonParser[] parsers) in JsonParserSequence() 85 JsonParser first, JsonParser second) in createFlattened() 89 new JsonParser[] { first, second }); in createFlattened() 91 ArrayList<JsonParser> p = new ArrayList<JsonParser>(); in createFlattened() 103 p.toArray(new JsonParser[p.size()])); in createFlattened() 111 public static JsonParserSequence createFlattened(JsonParser first, JsonParser second) { in createFlattened() 116 protected void addFlattenedActiveParsers(List<JsonParser> listToAddIn) in addFlattenedActiveParsers() 119 JsonParser p = _parsers[i]; in addFlattenedActiveParsers() [all …]
|
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/ |
D | TokenStreamFactory.java | 111 public abstract boolean isEnabled(JsonParser.Feature f); in isEnabled() 126 public abstract JsonParser createParser(byte[] data) throws IOException; in createParser() 127 public abstract JsonParser createParser(byte[] data, int offset, int len) throws IOException; in createParser() 128 public abstract JsonParser createParser(char[] content) throws IOException; in createParser() 129 public abstract JsonParser createParser(char[] content, int offset, int len) throws IOException; in createParser() 130 public abstract JsonParser createParser(DataInput in) throws IOException; in createParser() 131 public abstract JsonParser createParser(File f) throws IOException; in createParser() 132 public abstract JsonParser createParser(InputStream in) throws IOException; in createParser() 133 public abstract JsonParser createParser(Reader r) throws IOException; in createParser() 134 public abstract JsonParser createParser(String content) throws IOException; in createParser() [all …]
|
D | StreamReadFeature.java | 31 AUTO_CLOSE_SOURCE(JsonParser.Feature.AUTO_CLOSE_SOURCE), 49 STRICT_DUPLICATE_DETECTION(JsonParser.Feature.STRICT_DUPLICATE_DETECTION), 71 IGNORE_UNDEFINED(JsonParser.Feature.IGNORE_UNDEFINED), 92 INCLUDE_SOURCE_IN_LOCATION(JsonParser.Feature.INCLUDE_SOURCE_IN_LOCATION), 107 final private JsonParser.Feature _mappedFeature; 109 private StreamReadFeature(JsonParser.Feature mapTo) { in StreamReadFeature() 138 public JsonParser.Feature mappedFeature() { return _mappedFeature; } in mappedFeature()
|
D | ObjectCodec.java | 49 public abstract <T> T readValue(JsonParser p, Class<T> valueType) in readValue() 59 public abstract <T> T readValue(JsonParser p, TypeReference<T> valueTypeRef) in readValue() 68 public abstract <T> T readValue(JsonParser p, ResolvedType valueType) in readValue() 75 public abstract <T> Iterator<T> readValues(JsonParser p, Class<T> valueType) in readValues() 82 public abstract <T> Iterator<T> readValues(JsonParser p, TypeReference<T> valueTypeRef) in readValues() 89 public abstract <T> Iterator<T> readValues(JsonParser p, ResolvedType valueType) in readValues() 121 public abstract <T extends TreeNode> T readTree(JsonParser p) throws IOException; in readTree() 146 public abstract JsonParser treeAsTokens(TreeNode n); in treeAsTokens()
|
D | JsonFactory.java | 176 protected final static int DEFAULT_PARSER_FEATURE_FLAGS = JsonParser.Feature.collectDefaults(); 713 public final JsonFactory configure(JsonParser.Feature f, boolean state) { in configure() 721 public JsonFactory enable(JsonParser.Feature f) { in enable() 730 public JsonFactory disable(JsonParser.Feature f) { in disable() 739 public final boolean isEnabled(JsonParser.Feature f) { in isEnabled() 918 public JsonParser createParser(File f) throws IOException, JsonParseException { in createParser() 946 public JsonParser createParser(URL url) throws IOException, JsonParseException { in createParser() 975 public JsonParser createParser(InputStream in) throws IOException, JsonParseException { in createParser() 995 public JsonParser createParser(Reader r) throws IOException, JsonParseException { in createParser() 1008 public JsonParser createParser(byte[] data) throws IOException, JsonParseException { in createParser() [all …]
|
D | JsonParseException.java | 37 public JsonParseException(JsonParser p, String msg) { in JsonParseException() 44 public JsonParseException(JsonParser p, String msg, Throwable root) { in JsonParseException() 51 public JsonParseException(JsonParser p, String msg, JsonLocation loc) { in JsonParseException() 58 public JsonParseException(JsonParser p, String msg, JsonLocation loc, Throwable root) { in JsonParseException() 71 public JsonParseException withParser(JsonParser p) { in withParser() 92 public JsonParser getProcessor() { in getProcessor()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/filter/ |
D | BasicParserFilteringTest.java | 77 JsonParser p = JSON_F.createParser(SIMPLE); in testNonFiltering() 84 JsonParser p0 = JSON_F.createParser(SIMPLE); in testSingleMatchFilteringWithoutPath() 98 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath1() 112 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath2() 126 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath3() 140 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithoutPath1() 154 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithoutPath2() 168 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithPath1() 183 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithPath2() 197 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithPath3() [all …]
|
/external/oss-fuzz/projects/jackson-core/ |
D | JsonFuzzer.java | 18 import com.fasterxml.jackson.core.JsonParser; 27 mapper.enable(JsonParser.Feature.ALLOW_COMMENTS); in fuzzerTestOneInput() 29 mapper.enable(JsonParser.Feature.ALLOW_SINGLE_QUOTES); in fuzzerTestOneInput() 31 mapper.enable(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES); in fuzzerTestOneInput() 33 mapper.enable(JsonParser.Feature.ALLOW_YAML_COMMENTS); in fuzzerTestOneInput() 35 mapper.enable(JsonParser.Feature.IGNORE_UNDEFINED); in fuzzerTestOneInput() 37 mapper.enable(JsonParser.Feature.STRICT_DUPLICATE_DETECTION); in fuzzerTestOneInput()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/exc/ |
D | MismatchedInputException.java | 4 import com.fasterxml.jackson.core.JsonParser; 34 protected MismatchedInputException(JsonParser p, String msg) { in MismatchedInputException() 38 protected MismatchedInputException(JsonParser p, String msg, JsonLocation loc) { in MismatchedInputException() 42 protected MismatchedInputException(JsonParser p, String msg, Class<?> targetType) { in MismatchedInputException() 47 protected MismatchedInputException(JsonParser p, String msg, JavaType targetType) { in MismatchedInputException() 54 public static MismatchedInputException from(JsonParser p, String msg) { in from() 58 public static MismatchedInputException from(JsonParser p, JavaType targetType, String msg) { in from() 62 public static MismatchedInputException from(JsonParser p, Class<?> targetType, String msg) { in from()
|
D | ValueInstantiationException.java | 3 import com.fasterxml.jackson.core.JsonParser; 28 protected ValueInstantiationException(JsonParser p, String msg, in ValueInstantiationException() 34 protected ValueInstantiationException(JsonParser p, String msg, in ValueInstantiationException() 40 public static ValueInstantiationException from(JsonParser p, String msg, in from() 45 public static ValueInstantiationException from(JsonParser p, String msg, in from()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ |
D | ObjectReader.java | 330 protected <T> MappingIterator<T> _newIterator(JsonParser p, DeserializationContext ctxt, in _newIterator() 343 protected JsonToken _initForReading(DeserializationContext ctxt, JsonParser p) in _initForReading() 373 protected void _initForMultiRead(DeserializationContext ctxt, JsonParser p) in _initForMultiRead() 451 public ObjectReader with(JsonParser.Feature feature) { in with() 463 public ObjectReader withFeatures(JsonParser.Feature... features) { in withFeatures() 475 public ObjectReader without(JsonParser.Feature feature) { in without() 487 public ObjectReader withoutFeatures(JsonParser.Feature... features) { in withoutFeatures() 954 public boolean isEnabled(JsonParser.Feature f) { in isEnabled() 1019 public JsonParser createParser(File src) throws IOException { in createParser() 1032 public JsonParser createParser(URL src) throws IOException { in createParser() [all …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/ |
D | JsonNodeDeserializer.java | 65 public JsonNode deserialize(JsonParser p, DeserializationContext ctxt) throws IOException in deserialize() 95 public ObjectNode deserialize(JsonParser p, DeserializationContext ctxt) throws IOException in deserialize() 117 public ObjectNode deserialize(JsonParser p, DeserializationContext ctxt, in deserialize() 139 public ArrayNode deserialize(JsonParser p, DeserializationContext ctxt) throws IOException in deserialize() 153 public ArrayNode deserialize(JsonParser p, DeserializationContext ctxt, in deserialize() 180 public Object deserializeWithType(JsonParser p, DeserializationContext ctxt, in deserializeWithType() 223 protected void _handleDuplicateField(JsonParser p, DeserializationContext ctxt, in _handleDuplicateField() 264 protected final ObjectNode deserializeObject(JsonParser p, DeserializationContext ctxt, in deserializeObject() 318 protected final ObjectNode deserializeObjectAtName(JsonParser p, DeserializationContext ctxt, in deserializeObjectAtName() 372 protected final JsonNode updateObject(JsonParser p, DeserializationContext ctxt, in updateObject() [all …]
|
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/exc/ |
D | StreamReadException.java | 17 protected transient JsonParser _processor; 27 public StreamReadException(JsonParser p, String msg) { in StreamReadException() 32 public StreamReadException(JsonParser p, String msg, Throwable root) { in StreamReadException() 37 public StreamReadException(JsonParser p, String msg, JsonLocation loc) { in StreamReadException() 56 public abstract StreamReadException withParser(JsonParser p); in withParser() 67 public JsonParser getProcessor() { in getProcessor()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/ |
D | ParserFeaturesTest.java | 27 assertFalse(JSON_F.isEnabled(JsonParser.Feature.ALLOW_COMMENTS)); in testDeprecatedDefaultSettings() 28 assertFalse(JSON_F.isEnabled(JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS)); in testDeprecatedDefaultSettings() 29 assertFalse(JSON_F.isEnabled(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES)); in testDeprecatedDefaultSettings() 30 assertFalse(JSON_F.isEnabled(JsonParser.Feature.ALLOW_SINGLE_QUOTES)); in testDeprecatedDefaultSettings() 57 private void _testDefaultSettings(JsonParser p) throws Exception { in _testDefaultSettings() 74 JsonParser p = useStream ? in _testQuotesRequired() 96 …JsonParser p = useStream ? createParserUsingStream(f, JSON, "UTF-8") : createParserUsingReader(f, … in _testTabsDefault() 118 …JsonParser p = useStream ? createParserUsingStream(f, JSON, "UTF-8") : createParserUsingReader(f, … in _testTabsEnabled()
|
D | NumberParsingTest.java | 41 JsonParser p = createParser(mode, "[ true ]"); in _testSimpleBoolean() 68 JsonParser p = createParser(mode, DOC); in _testSimpleInt() 71 assertEquals(JsonParser.NumberType.INT, p.getNumberType()); in _testSimpleInt() 142 JsonParser p = createParser(mode, DOC); in testIntRange() 145 assertEquals(JsonParser.NumberType.INT, p.getNumberType()); in testIntRange() 149 assertEquals(JsonParser.NumberType.INT, p.getNumberType()); in testIntRange() 210 JsonParser p = createParser(mode, "[ "+EXP_L+" ]"); in _testSimpleLong() 214 assertEquals(JsonParser.NumberType.LONG, p.getNumberType()); in _testSimpleLong() 237 JsonParser p = createParser(mode, input); in testLongRange() 240 assertEquals(JsonParser.NumberType.LONG, p.getNumberType()); in testLongRange() [all …]
|
D | ParserSequenceTest.java | 12 JsonParser p1 = JSON_FACTORY.createParser("[ 1 ]"); in testSimple() 13 JsonParser p2 = JSON_FACTORY.createParser("[ 2 ]"); in testSimple() 51 JsonParser p1 = JSON_FACTORY.createParser("[ 1 ] "); in testMultiLevel() 52 JsonParser p2 = JSON_FACTORY.createParser(" 5"); in testMultiLevel() 53 JsonParser p3 = JSON_FACTORY.createParser(" { } "); in testMultiLevel() 79 JsonParser p1 = JSON_FACTORY.createParser("1 2"); in testInitializationDisabled() 80 JsonParser p2 = JSON_FACTORY.createParser("3 true"); in testInitializationDisabled() 100 JsonParser p1 = JSON_FACTORY.createParser("1 2"); in testInitializationEnabled() 101 JsonParser p2 = JSON_FACTORY.createParser("3 true"); in testInitializationEnabled()
|
D | SimpleParserTest.java | 20 JsonParser p = createParser(MODE_READER, "[ ]"); in testConfig() 24 p.enable(JsonParser.Feature.AUTO_CLOSE_SOURCE); in testConfig() 25 assertTrue(p.isEnabled(JsonParser.Feature.AUTO_CLOSE_SOURCE)); in testConfig() 26 p.disable(JsonParser.Feature.AUTO_CLOSE_SOURCE); in testConfig() 27 assertFalse(p.isEnabled(JsonParser.Feature.AUTO_CLOSE_SOURCE)); in testConfig() 29 p.configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, true); in testConfig() 30 assertTrue(p.isEnabled(JsonParser.Feature.AUTO_CLOSE_SOURCE)); in testConfig() 31 p.configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, false); in testConfig() 32 assertFalse(p.isEnabled(JsonParser.Feature.AUTO_CLOSE_SOURCE)); in testConfig() 67 JsonParser p = useStream ? in _testIntern() [all …]
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/ |
D | JsonFactoryTest.java | 18 public <T> T readValue(JsonParser p, Class<T> valueType) throws IOException { in readValue() 23 public <T> T readValue(JsonParser p, TypeReference<T> valueTypeRef) throws IOException { in readValue() 28 public <T> T readValue(JsonParser p, ResolvedType valueType) throws IOException { in readValue() 33 public <T> Iterator<T> readValues(JsonParser p, Class<T> valueType) throws IOException { in readValues() 38 …public <T> Iterator<T> readValues(JsonParser p, TypeReference<T> valueTypeRef) throws IOException { in readValues() 43 public <T> Iterator<T> readValues(JsonParser p, ResolvedType valueType) throws IOException { in readValues() 52 public <T extends TreeNode> T readTree(JsonParser p) throws IOException { in readTree() 71 public JsonParser treeAsTokens(TreeNode n) { in treeAsTokens() 192 JsonParser p = f.createParser("{}"); in testDisablingBufferRecycling() 221 JsonParser jp = f.createParser(file); in testJsonWithFiles() [all …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/std/ |
D | NumberSerializers.java | 63 protected final JsonParser.NumberType _numberType; 67 protected Base(Class<?> cls, JsonParser.NumberType numberType, in Base() 72 _isInt = (numberType == JsonParser.NumberType.INT) in Base() 73 || (numberType == JsonParser.NumberType.LONG) in Base() 74 || (numberType == JsonParser.NumberType.BIG_INTEGER); in Base() 123 super(Short.class, JsonParser.NumberType.INT, "number"); in ShortSerializer() 146 super(type, JsonParser.NumberType.INT, "integer"); in IntegerSerializer() 175 super(Number.class, JsonParser.NumberType.INT, "integer"); in IntLikeSerializer() 188 super(cls, JsonParser.NumberType.LONG, "number"); in LongSerializer() 203 super(Float.class, JsonParser.NumberType.FLOAT, "number"); in FloatSerializer() [all …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsontype/ |
D | TypeDeserializer.java | 89 …public abstract Object deserializeTypedFromObject(JsonParser p, DeserializationContext ctxt) throw… in deserializeTypedFromObject() 100 …public abstract Object deserializeTypedFromArray(JsonParser p, DeserializationContext ctxt) throws… in deserializeTypedFromArray() 112 …public abstract Object deserializeTypedFromScalar(JsonParser p, DeserializationContext ctxt) throw… in deserializeTypedFromScalar() 123 …public abstract Object deserializeTypedFromAny(JsonParser p, DeserializationContext ctxt) throws I… in deserializeTypedFromAny() 136 …public static Object deserializeIfNatural(JsonParser p, DeserializationContext ctxt, JavaType base… in deserializeIfNatural() 141 public static Object deserializeIfNatural(JsonParser p, DeserializationContext ctxt, in deserializeIfNatural()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/ |
D | DeserializationProblemHandler.java | 5 import com.fasterxml.jackson.core.JsonParser; 70 public boolean handleUnknownProperty(DeserializationContext ctxt, JsonParser p, in handleUnknownProperty() 198 JavaType targetType, Object valueToConvert, JsonParser p) in handleWeirdNativeValue() 214 Class<?> targetType, JsonToken t, JsonParser p, in handleUnexpectedToken() 249 JavaType targetType, JsonToken t, JsonParser p, in handleUnexpectedToken() 318 Class<?> instClass, ValueInstantiator valueInsta, JsonParser p, in handleMissingInstantiator() 413 Class<?> instClass, JsonParser p, String msg) in handleMissingInstantiator()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | ObjectReaderTest.java | 38 JsonParser p = MAPPER.createParser(JSON); in testSimpleViaParser() 175 assertFalse(r.isEnabled(JsonParser.Feature.IGNORE_UNDEFINED)); in testFeatureSettings() 205 assertFalse(r.isEnabled(JsonParser.Feature.IGNORE_UNDEFINED)); in testFeatureSettingsDeprecated() 207 assertTrue(r.with(JsonParser.Feature.IGNORE_UNDEFINED) in testFeatureSettingsDeprecated() 208 .isEnabled(JsonParser.Feature.IGNORE_UNDEFINED)); in testFeatureSettingsDeprecated() 209 assertFalse(r.without(JsonParser.Feature.IGNORE_UNDEFINED) in testFeatureSettingsDeprecated() 210 .isEnabled(JsonParser.Feature.IGNORE_UNDEFINED)); in testFeatureSettingsDeprecated() 213 assertFalse(r.isEnabled(JsonParser.Feature.STRICT_DUPLICATE_DETECTION)); in testFeatureSettingsDeprecated() 214 ObjectReader r2 = r.withFeatures(JsonParser.Feature.IGNORE_UNDEFINED, in testFeatureSettingsDeprecated() 215 JsonParser.Feature.STRICT_DUPLICATE_DETECTION); in testFeatureSettingsDeprecated() [all …]
|