Package org.imixs.archive.importer.mail
Class IMAPImportHelper
java.lang.Object
org.imixs.archive.importer.mail.IMAPImportHelper
A helper bean with static methods
- Version:
- 1.0
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisMediaTypeOctet(String contentType, String filename) This method returns true if the mediaType of a file attachment isstatic byte[]readAllBytes(InputStream inputStream) Read inputstream into a byte array.
-
Constructor Details
-
IMAPImportHelper
public IMAPImportHelper()
-
-
Method Details
-
isMediaTypeOctet
This method returns true if the mediaType of a file attachment is"application/octet-stream"
In some cases we have a situation where the contentType is "application/octet" which is not a valid content type. Also in this case we return true!
- Parameters:
contentType-- Returns:
-
readAllBytes
Read inputstream into a byte array.- Parameters:
inputStream-- Returns:
- Throws:
IOException
-