view src/main/java/nl/cwi/monetdb/mcl/embedded/EmbeddedWriter.java @ 61:f1de7262d8d9 embedded

First changes to the JDBC driver.
author Pedro Ferreira <pedro.ferreira@monetdbsolutions.com>
date Thu, 24 Nov 2016 18:12:44 +0100 (2016-11-24)
parents
children
line wrap: on
line source
package nl.cwi.monetdb.mcl.embedded;

import nl.cwi.monetdb.mcl.connection.AbstractBufferedWriter;

import java.io.*;

/**
 * Created by ferreira on 11/24/16.
 */
public class EmbeddedWriter extends AbstractBufferedWriter {

    public EmbeddedWriter() {
        super(null);
    }

    @Override
    public void writeLine(String line) throws IOException {
        this.writeInternal(line);
        this.reader.notify();
    }

    private native void writeInternal(String str);
}