public String displayMessage(LocoNetMessage l){
  forceHex=false;
  String s=format(l);
  if (forceHex) {
    s+="contents: " + l.toString() + "\n";
  }
  if (showOpCode) {
    s=LnConstants.OPC_NAME(l.getOpCode()) + ": " + s;
  }
  return s;
}

public String displayMessage ( LocoNetMessage l ) { forceHex = false ; String s = format ( l ) ; if ( forceHex ) { s += "contents: " + l . toString ( ) + "\n" ; } if ( showOpCode ) { s = LnConstants . OPC_NAME ( l . getOpCode ( ) ) + ": " + s ; } return s ; }
this function creates a string representation of a loconet buffer . the string may be more than one line , and is terminated with a newline .
