Class MessageMatcher
java.lang.Object
org.apache.james.mime4j.utils.search.MessageMatcher
Searches an email for content.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected voidbooleanisFoundIn(Reader reader, CharBuffer buffer) booleanmessageMatches(InputStream input) Is searchContents found in the given input?
-
Method Details
-
builder
-
messageMatches
Is searchContents found in the given input?- Parameters:
input-InputStreamcontaining an email- Returns:
- true if the content exists and the stream contains the content, false otherwise. It takes the mime structure into account.
- Throws:
IOExceptionMimeException
-
handle
- Throws:
IOExceptionMimeException
-
isFoundIn
- Throws:
IOException
-