When flush is called, we should cascade it to underlying stream, if it
is a stream. Failure to do so may cause problems with buffering.
Change-Id: I5ee32c3a0bab6aa112dc3c323ea1c4d5c4d5af5c
Signed-off-by: Robert Varga <rovarga@cisco.com>
@Override
public void flush() throws IOException {
@Override
public void flush() throws IOException {
+ if (output instanceof OutputStream) {
+ ((OutputStream)output).flush();
+ }
}
private void startNode(final QName qName, byte nodeType) throws IOException {
}
private void startNode(final QName qName, byte nodeType) throws IOException {