Java Code Examples for com.helger.commons.io.stream.StreamHelper#flush()
The following examples show how to use
com.helger.commons.io.stream.StreamHelper#flush() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractXMLSerializer.java From ph-commons with Apache License 2.0 | 5 votes |
/** * Write the specified node to the specified {@link Writer}. * * @param aNode * The node to write. May not be <code>null</code>. * @param aWriter * The writer to serialize onto. May not be <code>null</code>. */ public final void write (@Nonnull final NODETYPE aNode, @Nonnull @WillNotClose final Writer aWriter) { final XMLEmitter aXMLWriter = createXMLEmitter (aWriter, m_aSettings); // No parent node // No previous and no next sibling emitNode (aXMLWriter, null, null, aNode, null); // Flush is important for Writer! StreamHelper.flush (aWriter); }
Example 2
Source File: SafeXMLStreamWriter.java From ph-commons with Apache License 2.0 | 4 votes |
public void flush () throws XMLStreamException { debug ( () -> "flush ()"); StreamHelper.flush (m_aEmitter); }
Example 3
Source File: CSVWriter.java From ph-commons with Apache License 2.0 | 4 votes |
/** * flushes the writer without throwing any exceptions. */ public void flushQuietly () { StreamHelper.flush (this); }