private String read() throws IOException {
  String line=reader.readLine();
  if (line == null) {
    throw new IOException("FTPConnection closed");
  }
  for (Iterator iter=communicationListeners.iterator(); iter.hasNext(); ) {
    FTPCommunicationListener l=(FTPCommunicationListener)iter.next();
    l.received(line);
  }
  return line;
}

private String read ( ) throws IOException { String line = reader . readLine ( ) ; if ( line == null ) { throw new IOException ( "FTPConnection closed" ) ; } for ( Iterator iter = communicationListeners . iterator ( ) ; iter . hasNext ( ) ; ) { FTPCommunicationListener l = ( FTPCommunicationListener ) iter . next ( ) ; l . received ( line ) ; } return line ; }
this method reads a line from the remote server .
