public class IMAPImportHelper extends Object
| Constructor and Description |
|---|
IMAPImportHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isMediaTypeOctet(String contentType,
String filename)
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.
|
static byte[] |
readAllBytes(InputStream inputStream)
Read inputstream into a byte array.
|
public static boolean isMediaTypeOctet(String contentType, String filename)
"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!
contentType - public static byte[] readAllBytes(InputStream inputStream) throws IOException
inputStream - IOExceptionCopyright © 2016–2023 Imixs Software Solutions GmbH. All rights reserved.