/external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/ |
D | RawStringWriteTest.java | 23 JsonGenerator jgen = JSON_F.createGenerator(out, JsonEncoding.UTF8); in testUtf8RawStrings() local 24 jgen.writeStartArray(); in testUtf8RawStrings() 26 jgen.writeRawUTF8String(str, 0, str.length); in testUtf8RawStrings() 28 jgen.writeEndArray(); in testUtf8RawStrings() 29 jgen.close(); in testUtf8RawStrings() 55 JsonGenerator jgen = JSON_F.createGenerator(out, JsonEncoding.UTF8); in testUtf8StringsWithEscaping() local 56 jgen.writeStartArray(); in testUtf8StringsWithEscaping() 59 jgen.writeUTF8String(str, 0, str.length); in testUtf8StringsWithEscaping() 60 jgen.writeRaw('\n'); in testUtf8StringsWithEscaping() 62 jgen.writeEndArray(); in testUtf8StringsWithEscaping() [all …]
|
/external/geojson-jackson/src/main/java/org/geojson/jackson/ |
D | LngLatAltSerializer.java | 14 …public void serialize(LngLatAlt value, JsonGenerator jgen, SerializerProvider provider) throws IOE… in serialize() argument 15 jgen.writeStartArray(); in serialize() 16 jgen.writeNumber(value.getLongitude()); in serialize() 17 jgen.writeNumber(value.getLatitude()); in serialize() 19 jgen.writeNumber(value.getAltitude()); in serialize() 22 jgen.writeNumber(d); in serialize() 25 jgen.writeEndArray(); in serialize()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/impl/ |
D | SimpleBeanPropertyFilter.java | 90 public void serializeAsField(Object pojo, JsonGenerator jgen, in from() 93 src.serializeAsField(pojo, jgen, prov, (BeanPropertyWriter) writer); in from() 112 JsonGenerator jgen, SerializerProvider prov, in from() argument 164 public void serializeAsField(Object bean, JsonGenerator jgen, 168 writer.serializeAsField(bean, jgen, provider); 169 } else if (!jgen.canOmitFields()) { // since 2.3 170 writer.serializeAsOmittedField(bean, jgen, provider); 203 public void serializeAsField(Object pojo, JsonGenerator jgen, 208 writer.serializeAsField(pojo, jgen, provider); 209 } else if (!jgen.canOmitFields()) { // since 2.3 [all …]
|
D | IndexedListSerializer.java | 127 … public void serializeContentsUsing(List<?> value, JsonGenerator jgen, SerializerProvider provider, in serializeContentsUsing() argument 140 provider.defaultSerializeNull(jgen); in serializeContentsUsing() 142 ser.serialize(elem, jgen, provider); in serializeContentsUsing() 144 ser.serializeWithType(elem, jgen, provider, typeSer); in serializeContentsUsing() 153 … public void serializeTypedContents(List<?> value, JsonGenerator jgen, SerializerProvider provider) in serializeTypedContents() argument 167 provider.defaultSerializeNull(jgen); in serializeTypedContents() 181 serializer.serializeWithType(elem, jgen, provider, typeSer); in serializeTypedContents()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/ |
D | JSONWrappedObject.java | 69 …public void serializeWithType(JsonGenerator jgen, SerializerProvider provider, TypeSerializer type… in serializeWithType() argument 73 serialize(jgen, provider); in serializeWithType() 77 public void serialize(JsonGenerator jgen, SerializerProvider provider) in serialize() argument 81 if (_prefix != null) jgen.writeRaw(_prefix); in serialize() 83 provider.defaultSerializeNull(jgen); in serialize() 85 …rovider.findTypedValueSerializer(_serializationType, true, null).serialize(_value, jgen, provider); in serialize() 88 provider.findTypedValueSerializer(cls, true, null).serialize(_value, jgen, provider); in serialize() 90 if (_suffix != null) jgen.writeRaw(_suffix); in serialize()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/module/ |
D | TestTypeModifiers.java | 88 …public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) throws IOExce… in serialize() argument 89 jgen.writeString("xxx:"+value); in serialize() 142 …public void serialize(MapMarker<?,?> value, JsonGenerator jgen, SerializerProvider provider) throw… in serialize() argument 143 jgen.writeStartObject(); in serialize() 145 jgen.writeFieldName((String) value.getKey()); in serialize() 147 _keySerializer.serialize(value.getKey(), jgen, provider); in serialize() local 150 jgen.writeNumber(((Number) value.getValue()).intValue()); in serialize() 152 _valueSerializer.serialize(value.getValue(), jgen, provider); in serialize() local 154 jgen.writeEndObject(); in serialize() 174 …public void serialize(MyCollectionLikeType value, JsonGenerator jgen, SerializerProvider provider)… in serialize() argument [all …]
|
D | SimpleModuleTest.java | 43 public void serialize(CustomBean value, JsonGenerator jgen, SerializerProvider provider) in serialize() argument 47 jgen.writeString(value.str + "|" + value.num); in serialize() 78 public void serialize(SimpleEnum value, JsonGenerator jgen, SerializerProvider provider) in serialize() argument 81 jgen.writeString(value.name().toLowerCase()); in serialize() 119 …public void serialize(Base value, JsonGenerator jgen, SerializerProvider provider) throws IOExcept… in serialize() argument 120 jgen.writeString("Base:"+value.getText()); in serialize()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/base64/ |
D | Base64GenerationTest.java | 187 JsonGenerator jgen; in _testStreamingWrites() local 191 jgen = jf.createGenerator(bytes); in _testStreamingWrites() 193 jgen = jf.createGenerator(new OutputStreamWriter(bytes, "UTF-8")); in _testStreamingWrites() 195 jgen.writeStartArray(); in _testStreamingWrites() 198 jgen.writeBinary(variant, data, length); in _testStreamingWrites() 199 jgen.writeEndArray(); in _testStreamingWrites() 200 jgen.close(); in _testStreamingWrites()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/ |
D | BeanSerializerModifierTest.java | 139 public void serialize(Object value, JsonGenerator jgen, in serialize() argument 141 jgen.writeNumber(_value); in serialize() 196 …@Override public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) thr… in modifyArraySerializer() 197 jgen.writeNumber(123); in modifyArraySerializer() 208 …@Override public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) thr… 209 jgen.writeNumber(123); 220 …@Override public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) thr… 221 jgen.writeNumber(123); 232 …@Override public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) thr… 233 jgen.writeNumber(123); [all …]
|
D | TestJsonSerialize3.java | 16 public void serialize(String value, JsonGenerator jgen, SerializerProvider provider) in serialize() argument 19 jgen.writeString("bar"); in serialize() 21 jgen.writeString(value); in serialize()
|
D | TestConfig.java | 174 JsonGenerator jgen = MAPPER.createGenerator(sw); in testIndentWithPassedGenerator() local 175 indentWriter.writeValue(jgen, input); in testIndentWithPassedGenerator() 176 jgen.close(); in testIndentWithPassedGenerator() 183 jgen = m2.createGenerator(sw); in testIndentWithPassedGenerator() 184 m2.writeValue(jgen, input); in testIndentWithPassedGenerator() 185 jgen.close(); in testIndentWithPassedGenerator()
|
D | TestAnnotations.java | 141 public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) in serialize() argument 144 jgen.writeBoolean(true); in serialize() 151 public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) in serialize() argument 154 jgen.writeString("X"+value+"X"); in serialize()
|
D | TestEnumSerialization.java | 70 …public void serializeWithType(JsonGenerator jgen, SerializerProvider provider, TypeSerializer type… in serializeWithType() argument 73 serialize(jgen, provider); in serializeWithType() 77 …public void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonPro… in serialize() argument 79 jgen.writeString("foo"); in serialize() 116 public void serialize(Enum value, JsonGenerator jgen, in serialize() argument 118 jgen.writeString(value.name().toLowerCase()); in serialize()
|
D | TestJsonSerialize2.java | 42 public void serialize(SimpleKey key, JsonGenerator jgen, SerializerProvider provider) in serialize() argument 44 jgen.writeFieldName("key "+key.key); in serialize() 50 public void serialize(SimpleValue value, JsonGenerator jgen, SerializerProvider provider) in serialize() argument 52 jgen.writeString("value "+value.value); in serialize()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/ |
D | PropertyWriter.java | 106 …public abstract void serializeAsField(Object value, JsonGenerator jgen, SerializerProvider provide… in serializeAsField() argument 114 …public abstract void serializeAsOmittedField(Object value, JsonGenerator jgen, SerializerProvider … in serializeAsOmittedField() argument 133 …public abstract void serializeAsElement(Object value, JsonGenerator jgen, SerializerProvider provi… in serializeAsElement() argument 141 …public abstract void serializeAsPlaceholder(Object value, JsonGenerator jgen, SerializerProvider p… in serializeAsPlaceholder() argument
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/ |
D | TestVersions.java | 20 JsonGenerator jgen = new WriterBasedJsonGenerator(getIOContext(), 0, null, null, '"'); in testCoreVersions() local 21 assertVersion(jgen.version()); in testCoreVersions() 22 jgen.close(); in testCoreVersions()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/std/ |
D | IterableSerializer.java | 79 public void serializeContents(Iterable<?> value, JsonGenerator jgen, in serializeContents() argument 91 provider.defaultSerializeNull(jgen); in serializeContents() 107 currSerializer.serialize(elem, jgen, provider); in serializeContents() 109 currSerializer.serializeWithType(elem, jgen, provider, typeSer); in serializeContents()
|
D | ObjectArraySerializer.java | 259 …public void serializeContentsUsing(Object[] value, JsonGenerator jgen, SerializerProvider provider, in serializeContentsUsing() argument 271 provider.defaultSerializeNull(jgen); in serializeContentsUsing() 275 ser.serialize(elem, jgen, provider); in serializeContentsUsing() 277 ser.serializeWithType(elem, jgen, provider, typeSer); in serializeContentsUsing() 285 …public void serializeTypedContents(Object[] value, JsonGenerator jgen, SerializerProvider provider… in serializeTypedContents() argument 296 provider.defaultSerializeNull(jgen); in serializeTypedContents() 304 serializer.serializeWithType(elem, jgen, provider, typeSer); in serializeTypedContents()
|
D | RawSerializer.java | 30 …public void serialize(T value, JsonGenerator jgen, SerializerProvider provider) throws IOException… in serialize() argument 31 jgen.writeRawValue(value.toString()); in serialize()
|
D | InetSocketAddressSerializer.java | 22 …public void serialize(InetSocketAddress value, JsonGenerator jgen, SerializerProvider provider) th… in serialize() argument 38 jgen.writeString(str + ":" + value.getPort()); in serialize()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/ |
D | TestConversions.java | 55 public void serialize(Issue467Bean value, JsonGenerator jgen, in serialize() argument 57 jgen.writeObject(new Issue467TmpBean(value.i)); in serialize() 63 public void serialize(Issue467Tree value, JsonGenerator jgen, in serialize() argument 65 jgen.writeTree(BooleanNode.TRUE); in serialize() 94 …public void serialize(final JsonGenerator jgen, final SerializerProvider provider) throws IOExcept… in serialize() argument 96 jgen.writeTree(node); in serialize()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/ |
D | TestJsonFilter.java | 44 …public void serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider prov, PropertyWri… in serializeAsField() argument 45 JsonStreamContext sc = jgen.getOutputContext(); in serializeAsField() 52 writer.serializeAsField(bean, jgen, prov); in serializeAsField()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/io/ |
D | TestJsonStringEncoder.java | 86 JsonGenerator jgen = f.createGenerator(sw); in testQuoteAsUTF8() local 87 jgen.writeString(str); in testQuoteAsUTF8() 88 jgen.close(); in testQuoteAsUTF8()
|
/external/jackson-databind/src/test/java/perf/ |
D | ManualWritePerfWithUUID.java | 57 public void serialize(UUID value, JsonGenerator jgen, in serialize() argument 60 jgen.writeString(value.toString()); in serialize()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/ |
D | BaseJsonNode.java | 116 public abstract void serialize(JsonGenerator jgen, SerializerProvider provider) in serialize() argument 124 public abstract void serializeWithType(JsonGenerator jgen, SerializerProvider provider, in serializeWithType() argument
|