Example usage for com.fasterxml.jackson.databind SequenceWriter flush

List of usage examples for com.fasterxml.jackson.databind SequenceWriter flush

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind SequenceWriter flush.

Prototype

@Override
    public void flush() throws IOException 

Source Link

Usage

From source file:org.teavm.libgdx.plugin.AssetsCopier.java

private void writeJsonFS(OutputStream output) throws IOException {
    SequenceWriter seqWriter = writer.writeValues(output);
    boolean first = true;
    output.write((byte) '[');
    for (FileDescriptor desc : rootFileDescriptor.getChildFiles()) {
        if (!first) {
            output.write((byte) ',');
        }/*from   w ww.j  a  v  a  2 s. co  m*/
        first = false;
        seqWriter.write(desc);
    }
    output.write((byte) ']');
    seqWriter.flush();
}