ProtocolFormatter.java 592 B

1234567891011121314151617
  1. package de.tudarmstadt.informatik.hostage.format;
  2. /**
  3. * Interface for log view formatter.
  4. * This class provides functionality to format the presentation of specific protocols.
  5. * @author Wulf Pfeiffer
  6. */
  7. public interface ProtocolFormatter {
  8. /**
  9. * Formats the content of packet. The packet content can be a normal String or a hexadecimal String,
  10. * depending of the type of the protocol. ByteArray protocols receive hexdecimal String, else normal Strings.
  11. * @param packet that should be formatted.
  12. * @return new format of the packet content.
  13. */
  14. String format(String packet);
  15. }