org.apache.james.mime4j.codec
Class DecodeMonitor

java.lang.Object
  extended by org.apache.james.mime4j.codec.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:


Field Summary
static DecodeMonitor SILENT
          The SILENT monitor ignore requests.
static DecodeMonitor STRICT
          The STRICT monitor throws an exception on every event.
 
Constructor Summary
DecodeMonitor()
           
 
Method Summary
 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()


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.