streamInput.setSink (this); streamOutput.setSource (this);
input.setSink (this); output.setSource (this);
    void useChannels (Channel in, Channel out)    {        ASSERT (streamInput == null && streamOutput == null);        ASSERT (in != null && out != null);        ASSERT (in != out);        ASSERT (out.getType ().getName ().equals (in.getType ().getName ()));        streamInput = in;        streamOutput = out;        streamInput.setSink (this);        streamOutput.setSource (this);    }