String encode(){
  StringBuilder sbuf;
  sbuf=new StringBuilder();
  sbuf.append(getHost());
  sbuf.append('\n');
  sbuf.append(getUser());
  sbuf.append('\n');
  sbuf.append(getPassword());
  sbuf.append('\n');
  sbuf.append(getPort());
  sbuf.append('\n');
  sbuf.append(true);
  return sbuf.toString();
}

String encode ( ) { StringBuilder sbuf ; sbuf = new StringBuilder ( ) ; sbuf . append ( getHost ( ) ) ; sbuf . append ( '\n' ) ; sbuf . append ( getUser ( ) ) ; sbuf . append ( '\n' ) ; sbuf . append ( getPassword ( ) ) ; sbuf . append ( '\n' ) ; sbuf . append ( getPort ( ) ) ; sbuf . append ( '\n' ) ; sbuf . append ( true ) ; return sbuf . toString ( ) ; }
encode the login profile as a string .
