Class DecodeMonitor

  • Direct Known Subclasses:
    LoggingMonitor

    public class DecodeMonitor
    extends java.lang.Object
    This class is used to drive how decoder/parser should deal with malformed and unexpected data. 2 basic implementations are provided:
    • STRICT return "true" on any occurrence
    • SILENT ignores any problem
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static DecodeMonitor SILENT
      The SILENT monitor ignore requests.
      static DecodeMonitor STRICT
      The STRICT monitor throws an exception on every event.
    • Constructor Summary

      Constructors 
      Constructor Description
      DecodeMonitor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isListening()  
      boolean warn​(java.lang.String error, java.lang.String dropDesc)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STRICT

        public static final DecodeMonitor STRICT
        The STRICT monitor throws an exception on every event.
      • SILENT

        public static final DecodeMonitor SILENT
        The SILENT monitor ignore requests.
    • Constructor Detail

      • DecodeMonitor

        public DecodeMonitor()
    • Method Detail

      • warn

        public boolean warn​(java.lang.String error,
                            java.lang.String dropDesc)
      • isListening

        public boolean isListening()