File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
protobuf/src/main/java/com/fasterxml/jackson/dataformat/protobuf Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,22 @@ public Version version() {
175
175
return PackageVersion .VERSION ;
176
176
}
177
177
178
+ /*
179
+ /**********************************************************
180
+ /* Capability introspection
181
+ /**********************************************************
182
+ */
183
+
184
+ @ Override // since 2.10
185
+ public boolean canWriteBinaryNatively () {
186
+ return true ;
187
+ }
188
+
189
+ @ Override
190
+ public boolean canUseSchema (FormatSchema schema ) {
191
+ return (schema instanceof ProtobufSchema );
192
+ }
193
+
178
194
/*
179
195
/**********************************************************
180
196
/* Overridden methods, configuration
@@ -211,11 +227,6 @@ public int getOutputBuffered() {
211
227
return -1 ;
212
228
}
213
229
214
- @ Override
215
- public boolean canUseSchema (FormatSchema schema ) {
216
- return (schema instanceof ProtobufSchema );
217
- }
218
-
219
230
@ Override public ProtobufSchema getSchema () {
220
231
return _schema ;
221
232
}
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Project: jackson-datatypes-binaryModules:
14
14
(suggested by MrThreepwood @github )
15
15
#178 : Fix issue wit input offsets when parsing CBOR from `InputStream `
16
16
(reported by iziamos @github )
17
+ #180 : Add `ProtobufGenerator .canWriteBinaryNatively ()` to support binary writes
17
18
18
19
2.10 .0.p r2 (31 - Aug - 2019 )
19
20
You can’t perform that action at this time.
0 commit comments