public void sendLine(String line) throws IOException {
  checkNotNull(line,"Line cannot be null");
  if (finished)   throw new DccException(DccException.Reason.ChatNotConnected,user,"Chat has already finished");
synchronized (bufferedWriter) {
    log.info(OUTPUT_CHAT_MARKER,">>>" + line);
    bufferedWriter.write(line + "\r\n");
    bufferedWriter.flush();
  }
}

public void sendLine ( String line ) throws IOException { checkNotNull ( line , "Line cannot be null" ) ; if ( finished ) throw new DccException ( DccException . Reason . ChatNotConnected , user , "Chat has already finished" ) ; synchronized ( bufferedWriter ) { log . info ( OUTPUT_CHAT_MARKER , ">>>" + line ) ; bufferedWriter . write ( line + "\r\n" ) ; bufferedWriter . flush ( ) ; } }
sends a line of text to the client at the other end of our dcc chat connection .
