@@ -80,9 +80,9 @@ private Feature(boolean defaultState) {
80
80
}
81
81
82
82
/*
83
- /**********************************************************
83
+ /**********************************************************************
84
84
/* Configuration
85
- /**********************************************************
85
+ /**********************************************************************
86
86
*/
87
87
88
88
final protected IOContext _ioContext ;
@@ -97,9 +97,9 @@ private Feature(boolean defaultState) {
97
97
protected AvroSchema _rootSchema ;
98
98
99
99
/*
100
- /**********************************************************
100
+ /**********************************************************************
101
101
/* Output state
102
- /**********************************************************
102
+ /**********************************************************************
103
103
*/
104
104
105
105
final protected OutputStream _output ;
@@ -126,9 +126,9 @@ private Feature(boolean defaultState) {
126
126
protected boolean _complete ;
127
127
128
128
/*
129
- /**********************************************************
129
+ /**********************************************************************
130
130
/* Life-cycle
131
- /**********************************************************
131
+ /**********************************************************************
132
132
*/
133
133
134
134
public AvroGenerator (ObjectWriteContext writeCtxt , IOContext ctxt ,
@@ -158,9 +158,9 @@ public void setSchema(AvroSchema schema)
158
158
}
159
159
160
160
/*
161
- /**********************************************************
161
+ /**********************************************************************
162
162
/* Versioned
163
- /**********************************************************
163
+ /**********************************************************************
164
164
*/
165
165
166
166
@ Override
@@ -169,9 +169,9 @@ public Version version() {
169
169
}
170
170
171
171
/*
172
- /**********************************************************
172
+ /**********************************************************************
173
173
/* Output state handling
174
- /**********************************************************
174
+ /**********************************************************************
175
175
*/
176
176
177
177
@ Override
@@ -186,11 +186,11 @@ public Object getCurrentValue() {
186
186
public void setCurrentValue (Object v ) {
187
187
_tokenWriteContext .setCurrentValue (v );
188
188
}
189
-
189
+
190
190
/*
191
- /**********************************************************
191
+ /**********************************************************************
192
192
/* Overridden methods, configuration
193
- /**********************************************************
193
+ /**********************************************************************
194
194
*/
195
195
196
196
@ Override
@@ -232,9 +232,9 @@ public void setSchema(FormatSchema schema)
232
232
}
233
233
234
234
/*
235
- /**********************************************************
235
+ /**********************************************************************
236
236
/* Extended API, configuration
237
- /**********************************************************
237
+ /**********************************************************************
238
238
*/
239
239
240
240
public AvroGenerator enable (Feature f ) {
@@ -292,9 +292,9 @@ public final void writeStringField(String fieldName, String value)
292
292
}
293
293
294
294
/*
295
- /**********************************************************
295
+ /**********************************************************************
296
296
/* Public API: low-level I/O
297
- /**********************************************************
297
+ /**********************************************************************
298
298
*/
299
299
300
300
@ Override
@@ -350,9 +350,9 @@ public void close() throws IOException
350
350
}
351
351
352
352
/*
353
- /**********************************************************
353
+ /**********************************************************************
354
354
/* Public API: structural output
355
- /**********************************************************
355
+ /**********************************************************************
356
356
*/
357
357
358
358
@ Override
@@ -381,7 +381,7 @@ public final void writeEndArray() throws IOException
381
381
382
382
@ Override
383
383
public final void writeStartObject () throws IOException {
384
- _tokenWriteContext = _tokenWriteContext .createChildObjectContext ();
384
+ _tokenWriteContext = _tokenWriteContext .createChildObjectContext (null );
385
385
_complete = false ;
386
386
}
387
387
@@ -408,9 +408,9 @@ public final void writeEndObject() throws IOException
408
408
}
409
409
410
410
/*
411
- /**********************************************************
411
+ /**********************************************************************
412
412
/* Output method implementations, textual
413
- /**********************************************************
413
+ /**********************************************************************
414
414
*/
415
415
416
416
@ Override
@@ -444,9 +444,9 @@ public final void writeUTF8String(byte[] text, int offset, int len) throws IOExc
444
444
}
445
445
446
446
/*
447
- /**********************************************************
447
+ /**********************************************************************
448
448
/* Output method implementations, unprocessed ("raw")
449
- /**********************************************************
449
+ /**********************************************************************
450
450
*/
451
451
452
452
@ Override
@@ -494,9 +494,9 @@ public void writeRawValue(char[] text, int offset, int len) throws IOException {
494
494
}
495
495
496
496
/*
497
- /**********************************************************
497
+ /**********************************************************************
498
498
/* Output method implementations, base64-encoded binary
499
- /**********************************************************
499
+ /**********************************************************************
500
500
*/
501
501
502
502
@ Override
@@ -510,9 +510,9 @@ public void writeBinary(Base64Variant b64variant, byte[] data, int offset, int l
510
510
}
511
511
512
512
/*
513
- /**********************************************************
513
+ /**********************************************************************
514
514
/* Output method implementations, primitive
515
- /**********************************************************
515
+ /**********************************************************************
516
516
*/
517
517
518
518
@ Override
@@ -579,9 +579,9 @@ public void writeNumber(String encodedValue) throws IOException {
579
579
}
580
580
581
581
/*
582
- /**********************************************************
582
+ /**********************************************************************
583
583
/* Implementations for methods from base class
584
- /**********************************************************
584
+ /**********************************************************************
585
585
*/
586
586
587
587
@ Override
@@ -600,9 +600,9 @@ protected void _releaseBuffers() {
600
600
}
601
601
602
602
/*
603
- /**********************************************************
603
+ /**********************************************************************
604
604
/* Helper methods
605
- /**********************************************************
605
+ /**********************************************************************
606
606
*/
607
607
608
608
protected void _complete () throws IOException
0 commit comments