// 
// Decompiled by Procyon v0.6.0
// 

package org.jline.terminal.impl;

import java.io.IOException;
import java.io.Writer;

public abstract class AbstractWindowsConsoleWriter extends Writer
{
    protected abstract void writeConsole(final char[] p0, final int p1) throws IOException;
    
    @Override
    public void write(final char[] cbuf, final int off, final int len) throws IOException {
        char[] text = cbuf;
        if (off != 0) {
            text = new char[len];
            System.arraycopy(cbuf, off, text, 0, len);
        }
        synchronized (this.lock) {
            this.writeConsole(text, len);
        }
    }
    
    @Override
    public void flush() {
    }
    
    @Override
    public void close() {
    }
}
