@@ -402,7 +402,7 @@ public void writeValue(XMLStreamWriter w0, Object value) throws IOException {
402
402
* Method that can be used to serialize any Java value as
403
403
* a byte array.
404
404
*
405
- * @param value value to write as XML bytes
405
+ * @param value value to serialize as XML bytes
406
406
* @param encoding character encoding for the XML output
407
407
* @return byte array representing the XML output
408
408
* @throws JsonProcessingException
@@ -425,9 +425,9 @@ public byte[] writeValueAsBytes(Object value, String encoding) throws JsonProces
425
425
* Method that can be used to serialize any Java value as
426
426
* XML output, written to File provided.
427
427
*
428
- * @param resultFile
429
- * @param value
430
- * @param encoding
428
+ * @param resultFile the file to write to
429
+ * @param value the value to serialize
430
+ * @param encoding character encoding for the XML output
431
431
* @throws IOException
432
432
* @throws StreamWriteException
433
433
* @throws DatabindException
@@ -458,14 +458,14 @@ public void writeValue(OutputStream out, Object value, String encoding)
458
458
_writeValueAndClose (createGenerator (out , encoding ), value );
459
459
}
460
460
461
- private JsonGenerator createGenerator (OutputStream out , String encoding ) throws IOException {
461
+ protected final JsonGenerator createGenerator (OutputStream out , String encoding ) throws IOException {
462
462
this ._assertNotNull ("out" , out );
463
463
JsonGenerator g = ((XmlFactory ) _jsonFactory ).createGenerator (out , encoding );
464
464
this ._serializationConfig .initialize (g );
465
465
return g ;
466
466
}
467
467
468
- private JsonGenerator createGenerator (File outputFile , String encoding ) throws IOException {
468
+ protected final JsonGenerator createGenerator (File outputFile , String encoding ) throws IOException {
469
469
_assertNotNull ("outputFile" , outputFile );
470
470
JsonGenerator g = ((XmlFactory ) _jsonFactory ).createGenerator (
471
471
new FileOutputStream (outputFile ), encoding );
0 commit comments