public StringBuffer encode(StringBuffer buffer){
  return buffer.append(encode());
}

public StringBuffer encode ( StringBuffer buffer ) { return buffer . append ( encode ( ) ) ; }
encode the header into the given stringbuffer . default implemation calls encode ( ) .
