| Package | Description |
|---|---|
| ru.dlabs71.library.email.mime |
This package contains interface and its default implementation for defining file parameters
(such as MIME type or charset of content).
|
| ru.dlabs71.library.email.util |
This package contains all the helper classes that are used by the library or can be used by you.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultFileParametersDetector
This class implements
FileParametersDetector interface. |
| Modifier and Type | Method and Description |
|---|---|
EmailAttachment |
AttachmentUtils.create(String pathToFile,
FileParametersDetector detector)
Creates an object of the
EmailAttachment class by the path to file argument
The path to file must start with the following prefixes: "file://", "classpath:" or a path separator. |
String |
AttachmentUtils.createContentTypeForAttachment(File file,
FileParametersDetector detector)
This method creates string for the value of Content-Type header.
|
Charset |
FileSystemUtils.detectFileEncoding(File file,
FileParametersDetector detector)
Tries to predict encoding of a file.
|
String |
FileSystemUtils.detectFileMimeType(File file,
FileParametersDetector detector)
Tries to predict MIME type of file.
|
Copyright © 2023. All rights reserved.