view src/main/java/nl/cwi/monetdb/mcl/io/EmbeddedMCLWriter.java @ 62:b66003555560 embedded

Split parsers and cleaned the MCL layer.
author Pedro Ferreira <pedro.ferreira@monetdbsolutions.com>
date Fri, 25 Nov 2016 12:05:10 +0100 (2016-11-25)
parents src/main/java/nl/cwi/monetdb/mcl/embedded/EmbeddedWriter.java@f1de7262d8d9
children 6325594f01af
line wrap: on
line source
package nl.cwi.monetdb.mcl.io;

import java.io.*;

/**
 * Created by ferreira on 11/24/16.
 */
public class EmbeddedMCLWriter extends AbstractMCLWriter {

    public EmbeddedMCLWriter(EmbeddedMCLReader reader) {
        super(null);
        this.reader = reader;
    }

    @Override
    public void writeLine(String line) throws IOException {
        this.writeInternal(line);
        this.reader.notify(); //wake up the embedded reader.
    }

    private native void writeInternal(String str);
}