class PlatformDotNetConsoleStream extends OutputStream {
    /** Indicates whether this is an error stream. */
    private final boolean isErr;

    /**
     * Ctor.
     *
     * @param err Error stream flag.
     */
    public PlatformDotNetConsoleStream(boolean err) {
        isErr = err;
    }

    /** {@inheritDoc} */
    @Override public void write(byte[] b, int off, int len) throws IOException {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public void write(int b) throws IOException {
        String s = String.valueOf((char)b);

        PlatformCallbackGateway.consoleWrite(s, isErr);
    }
}

        String s = new String(b, off, len);

        PlatformCallbackGateway.consoleWrite(s, isErr);
    
<methods>public void <init>() ,public void close() throws java.io.IOException,public void flush() throws java.io.IOException,public static java.io.OutputStream nullOutputStream() ,public abstract void write(int) throws java.io.IOException,public void write(byte[]) throws java.io.IOException,public void write(byte[], int, int) throws java.io.IOException<variables>