org.apache.james.mime4j.codec
Class DecodeMonitor
java.lang.Object
org.apache.james.mime4j.codec.DecodeMonitor
public class DecodeMonitor
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
DecodeMonitor
public DecodeMonitor()
warn
public boolean warn(String error,
String dropDesc)
isListening
public boolean isListening()
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.