[jOOQ/jOOQ#13023] Record.formatJSON(Writer) and Record.formatXML(Writer)

should flush the writer
This commit is contained in:
Lukas Eder 2022-02-09 10:46:52 +01:00
parent 496faf7489
commit a5866497db

View File

@ -1053,6 +1053,8 @@ abstract class AbstractRecord extends AbstractStore implements Record {
default:
throw new IllegalArgumentException("Format not supported: " + format);
}
writer.flush();
}
catch (java.io.IOException e) {
throw new IOException("Exception while writing JSON", e);
@ -1066,6 +1068,7 @@ abstract class AbstractRecord extends AbstractStore implements Record {
try {
AbstractResult.formatXMLRecord(writer, format, 0, this, fields);
writer.flush();
}
catch (java.io.IOException e) {
throw new IOException("Exception while writing XML", e);