Home
last modified time | relevance | path

Searched refs:ObjectWriter (Results 1 – 25 of 51) sorted by relevance

123

/external/protobuf/src/google/protobuf/util/internal/
Dobject_writer.h60 class PROTOBUF_EXPORT ObjectWriter {
62 virtual ~ObjectWriter() {} in ~ObjectWriter()
65 virtual ObjectWriter* StartObject(StringPiece name) = 0;
68 virtual ObjectWriter* EndObject() = 0;
71 virtual ObjectWriter* StartList(StringPiece name) = 0;
74 virtual ObjectWriter* EndList() = 0;
77 virtual ObjectWriter* RenderBool(StringPiece name, bool value) = 0;
80 virtual ObjectWriter* RenderInt32(StringPiece name, int32 value) = 0;
83 virtual ObjectWriter* RenderUint32(StringPiece name, uint32 value) = 0;
86 virtual ObjectWriter* RenderInt64(StringPiece name, int64 value) = 0;
[all …]
Dexpecting_objectwriter.h70 class MockObjectWriter : public ObjectWriter {
74 MOCK_METHOD1(StartObject, ObjectWriter*(StringPiece));
75 MOCK_METHOD0(EndObject, ObjectWriter*());
76 MOCK_METHOD1(StartList, ObjectWriter*(StringPiece));
77 MOCK_METHOD0(EndList, ObjectWriter*());
78 MOCK_METHOD2(RenderBool, ObjectWriter*(StringPiece, bool));
79 MOCK_METHOD2(RenderInt32, ObjectWriter*(StringPiece, int32));
80 MOCK_METHOD2(RenderUint32, ObjectWriter*(StringPiece, uint32));
81 MOCK_METHOD2(RenderInt64, ObjectWriter*(StringPiece, int64));
82 MOCK_METHOD2(RenderUint64, ObjectWriter*(StringPiece, uint64));
[all …]
Dprotostream_objectsource.h81 ObjectWriter* ow) const override;
138 ObjectWriter* ow) const;
145 uint32 list_tag, ObjectWriter* ow) const;
154 ObjectWriter* ow) const;
170 StringPiece, ObjectWriter*);
180 ObjectWriter* ow) const;
186 ObjectWriter* ow) const;
193 ObjectWriter* ow);
199 ObjectWriter* ow);
205 StringPiece name, ObjectWriter* ow);
[all …]
Dobject_source.h45 class ObjectWriter; variable
58 virtual util::Status WriteTo(ObjectWriter* ow) const { in WriteTo()
66 ObjectWriter* ow) const = 0;
Dprotostream_objectsource.cc163 ObjectWriter* ow) const { in NamedWriteTo()
191 ObjectWriter* ow) const { in WriteMessage()
257 uint32 list_tag, ObjectWriter* ow) const { in RenderList()
279 uint32 list_tag, ObjectWriter* ow) const { in RenderMap()
324 const google::protobuf::Field* field, ObjectWriter* ow) const { in RenderPacked()
338 StringPiece field_name, ObjectWriter* ow) { in RenderTimestamp()
362 StringPiece field_name, ObjectWriter* ow) { in RenderDuration()
405 ObjectWriter* ow) { in RenderDouble()
419 ObjectWriter* ow) { in RenderFloat()
433 ObjectWriter* ow) { in RenderInt64()
[all …]
Ddefault_value_objectwriter.h60 class PROTOBUF_EXPORT DefaultValueObjectWriter : public ObjectWriter {
83 ObjectWriter* ow);
178 virtual void WriteTo(ObjectWriter* ow);
210 void WriteChildren(ObjectWriter* ow);
324 ObjectWriter* ow_;
Djson_stream_parser.h48 class ObjectWriter; variable
73 explicit JsonStreamParser(ObjectWriter* ow);
226 ObjectWriter* ow_;
Dobject_writer.cc41 void ObjectWriter::RenderDataPieceTo(const DataPiece& data, in RenderDataPieceTo()
42 StringPiece name, ObjectWriter* ow) { in RenderDataPieceTo()
Dstructured_objectwriter.h58 class PROTOBUF_EXPORT StructuredObjectWriter : public ObjectWriter {
Dtype_info_test_helper.h82 ObjectWriter* writer);
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DObjectWriter.java32 public class ObjectWriter class
97 protected ObjectWriter(ObjectMapper mapper, SerializationConfig config, in ObjectWriter() method in ObjectWriter
121 protected ObjectWriter(ObjectMapper mapper, SerializationConfig config) in ObjectWriter() method in ObjectWriter
135 protected ObjectWriter(ObjectMapper mapper, SerializationConfig config, in ObjectWriter() method in ObjectWriter
152 protected ObjectWriter(ObjectWriter base, SerializationConfig config, in ObjectWriter() method in ObjectWriter
168 protected ObjectWriter(ObjectWriter base, SerializationConfig config) in ObjectWriter() method in ObjectWriter
183 protected ObjectWriter(ObjectWriter base, JsonFactory f) in ObjectWriter() method in ObjectWriter
217 protected ObjectWriter _new(ObjectWriter base, JsonFactory f) { in _new()
218 return new ObjectWriter(base, f); in _new()
226 protected ObjectWriter _new(ObjectWriter base, SerializationConfig config) { in _new()
[all …]
DObjectMapper.java740 protected ObjectWriter _newWriter(SerializationConfig config) { in _newWriter()
741 return new ObjectWriter(this, config); in _newWriter()
750 protected ObjectWriter _newWriter(SerializationConfig config, FormatSchema schema) { in _newWriter()
751 return new ObjectWriter(this, config, schema); in _newWriter()
760 protected ObjectWriter _newWriter(SerializationConfig config, in _newWriter()
762 return new ObjectWriter(this, config, rootType, pp); in _newWriter()
3736 public ObjectWriter writer() {
3745 public ObjectWriter writer(SerializationFeature feature) {
3754 public ObjectWriter writer(SerializationFeature first,
3764 public ObjectWriter writer(DateFormat df) {
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectWriterTest.java64 ObjectWriter writer = MAPPER.writer(); in testPrettyPrinter()
85 ObjectWriter writer = MAPPER.writer(); in testPrefetch()
93 ObjectWriter writer = MAPPER.writer() in testObjectWriterFeatures()
107 ObjectWriter writer = MAPPER.writerFor(JsonNode.class); in testObjectWriterWithNode()
114 ObjectWriter writer = MAPPER.writerFor(PolyBase.class); in testPolymorphicWithTyping()
131 ObjectWriter w = MAPPER.writer() in testNoPrefetch()
141 ObjectWriter w = MAPPER.writer() in testWithCloseCloseable()
163 ObjectWriter w = MAPPER.writer(); in testViewSettings()
164 ObjectWriter newW = w.withView(String.class); in testViewSettings()
175 ObjectWriter w = MAPPER.writer(); in testMiscSettings()
[all …]
DTestJDKSerialization.java115 ObjectWriter w = jdkDeserialize(bytes); in testEnumHandlers()
127 ObjectWriter origWriter = MAPPER.writer(); in testObjectWriter()
135 ObjectWriter writer2 = jdkDeserialize(bytes); in testObjectWriter()
/external/jackson-databind/src/test/java/perf/
DObjectWriterTestBase.java4 import com.fasterxml.jackson.databind.ObjectWriter;
29 … final ObjectWriter writer0 = mapper.writer().with(SerializationFeature.EAGER_SERIALIZER_FETCH); in test()
30 final ObjectWriter writer1 = writer0.forType(inputClass1); in test()
31 final ObjectWriter writer2 = writer0.forType(inputClass2); in test()
49 ObjectWriter writer; in test()
106 protected double testSer(int REPS, Object value, ObjectWriter writer) throws Exception in testSer()
DManualWritePerfUntyped.java6 import com.fasterxml.jackson.databind.ObjectWriter;
33 protected double testSer(int REPS, Object value, ObjectWriter writer) throws Exception in testSer()
DManualWritePerfWithAllTypes.java7 import com.fasterxml.jackson.databind.ObjectWriter;
34 protected double testSer(int REPS, Object value, ObjectWriter writer) throws Exception in testSer()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/
DInternalNodeMapper.java7 import com.fasterxml.jackson.databind.ObjectWriter;
20 private final static ObjectWriter STD_WRITER = JSON_MAPPER.writer();
21 private final static ObjectWriter PRETTY_WRITER = JSON_MAPPER.writer()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestRootType.java93 ObjectWriter w = mapper.writerFor(BaseType.class); in testSuperClass()
107 ObjectWriter w = mapper.writerFor(BaseInterface.class); in testSuperInterface()
137 ObjectWriter w = mapper.writerFor(HashMap.class); in testIncompatibleRootType()
207 ObjectWriter writer = WRAP_ROOT_MAPPER.writerFor(TestCommandParent.class); in testRootNameWithExplicitType()
DTestMapSerialization.java105 ObjectWriter w = MAPPER.writerFor(Object.class); in testUsingObjectWriter()
149 ObjectWriter sortingW = m.writer(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS); in testOrderByKey()
156 ObjectWriter sortingW = MAPPER.writer(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS); in testOrderByWithNulls()
231 final ObjectWriter w = MAPPER.writer(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS); in testConcurrentMaps()
DSerializationFeaturesTest.java92 ObjectWriter ow = mapper.writer(); in testFlushingAutomatic()
116 ObjectWriter ow = mapper.writer(); in testFlushingNotAutomatic()
127 …final ObjectWriter writer = objectWriter().with(SerializationFeature.WRITE_SINGLE_ELEM_ARRAYS_UNWR… in testSingleElementCollections()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/
DDateSerializationTest.java19 import com.fasterxml.jackson.databind.ObjectWriter;
137 ObjectWriter w = MAPPER.writer() in testDateISO8601_10k()
149 ObjectWriter w = MAPPER.writer() in testDateISO8601_BCE()
229 ObjectWriter w = MAPPER.writer((DateFormat)null); in testDateUsingObjectWriter()
299 ObjectWriter w = mapper.writer().with(TimeZone.getTimeZone("EST")); in testWithTimeZoneOverride()
384 private void serialize(ObjectWriter w, Object date, String expected) throws IOException { in serialize()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/contextual/
DTestContextAttributeWithSer.java55 ObjectWriter w = MAPPER.writer(); in testSimplePerCall()
81 ObjectWriter w = MAPPER.writer().withAttribute(KEY, Integer.valueOf(2)); in testHierarchic()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/seq/
DSequenceWriterTest.java93 private final ObjectWriter WRITER = MAPPER.writer()
199 ObjectWriter w = mapper.writer() in testSimpleCloseable()
216 ObjectWriter w = MAPPER.writer() in testWithExplicitType()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/
DDefaultWithBaseType1093Test.java41 ObjectWriter w) throws Exception in _testWithDefaultTyping()

123