@@ -402,7 +402,7 @@ public void writeValue(XMLStreamWriter w0, Object value) throws IOException {
402402 * Method that can be used to serialize any Java value as
403403 * a byte array.
404404 *
405- * @param value value to write as XML bytes
405+ * @param value value to serialize as XML bytes
406406 * @param encoding character encoding for the XML output
407407 * @return byte array representing the XML output
408408 * @throws JsonProcessingException
@@ -425,9 +425,9 @@ public byte[] writeValueAsBytes(Object value, String encoding) throws JsonProces
425425 * Method that can be used to serialize any Java value as
426426 * XML output, written to File provided.
427427 *
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
431431 * @throws IOException
432432 * @throws StreamWriteException
433433 * @throws DatabindException
@@ -458,14 +458,14 @@ public void writeValue(OutputStream out, Object value, String encoding)
458458 _writeValueAndClose (createGenerator (out , encoding ), value );
459459 }
460460
461- private JsonGenerator createGenerator (OutputStream out , String encoding ) throws IOException {
461+ protected final JsonGenerator createGenerator (OutputStream out , String encoding ) throws IOException {
462462 this ._assertNotNull ("out" , out );
463463 JsonGenerator g = ((XmlFactory ) _jsonFactory ).createGenerator (out , encoding );
464464 this ._serializationConfig .initialize (g );
465465 return g ;
466466 }
467467
468- private JsonGenerator createGenerator (File outputFile , String encoding ) throws IOException {
468+ protected final JsonGenerator createGenerator (File outputFile , String encoding ) throws IOException {
469469 _assertNotNull ("outputFile" , outputFile );
470470 JsonGenerator g = ((XmlFactory ) _jsonFactory ).createGenerator (
471471 new FileOutputStream (outputFile ), encoding );
0 commit comments