public synchronized void print(PrintStream p){
  for (int i=0; i < nkeys; i++)   if (keys[i] != null) {
    p.print(keys[i] + (values[i] != null ? ": " + values[i] : "") + "\r\n");
  }
  p.print("\r\n");
  p.flush();
}

public synchronized void print ( PrintStream p ) { for ( int i = 0 ; i < nkeys ; i ++ ) if ( keys [ i ] != null ) { p . print ( keys [ i ] + ( values [ i ] != null ? ": " + values [ i ] : "" ) + "\r\n" ) ; } p . print ( "\r\n" ) ; p . flush ( ) ; }
prints the key - value pairs represented by this header . also prints the rfc required blank line at the end . omits pairs with a null key .
