package jdk.internal.org.jline.terminal.impl;
import java.io.IOException;
import java.io.Writer;
public abstract class AbstractWindowsConsoleWriter extends Writer {
protected abstract void writeConsole(char[] text, int len) throws IOException;
@Override
public void write(char[] cbuf, int off, int len) throws IOException {
char[] text = cbuf;
if (off != 0) {
text = new char[len];
System.arraycopy(cbuf, off, text, 0, len);
}
synchronized (this.lock) {
writeConsole(text, len);
}
}
@Override
public void flush() {
}
@Override
public void close() {
}
}