base/common/src/main/com/thesett/common/io/ClientOutputStream.java
public void write(byte[] b, int off, int len) throws IOException
    {
        try
        {
            sink.write(b, off, len);
        }
        catch (RemoteException e)
        {
            throw new IOException("There was a Remote Exception.", e);
        }
    }
public void write(byte[] b, int off, int len) throws IOException
    {
        try
        {
            sink.write(b, off, len);
        }
        catch (RemoteException e)
        {
            throw new IOException("There was a Remote Exception.", e);
        }
    }
Writes bytes from the specified byte array <code>b</code>, starting from index specified by <code>off</code>, and
continuing for <code>len</code> bytes, to this output stream.

@param  b   The data.
@param  off The start offset in the data.
@param  len The number of bytes to write.

@throws IOException If an IOException occurs in the wrapped sink stream or a remote exception occurs.