Class SendMailJob.Base64AttachmentSupplier
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.mail.SendMailJob.Base64AttachmentSupplier
- All Implemented Interfaces:
SendMailJob.AttachmentSupplier
,Serializable
- Enclosing class:
SendMailJob
public static non-sealed class SendMailJob.Base64AttachmentSupplier
extends Object
implements SendMailJob.AttachmentSupplier
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondecodeBase64Binary
(BinaryFactory binaryFactory) @Nullable String
@Nullable String
getId()
long
getSize()
withData
(Binary data, BinaryBean binaryBean, String locale) withoutData
(Binary data, BinaryBean binaryBean, String locale) creates a supplier that does not encode binary into base64 used when content should not actually be used, for instance when it is too big
-
Method Details
-
withData
public static SendMailJob.Base64AttachmentSupplier withData(Binary data, BinaryBean binaryBean, String locale) throws IOException - Throws:
IOException
-
withoutData
public static SendMailJob.Base64AttachmentSupplier withoutData(Binary data, BinaryBean binaryBean, String locale) creates a supplier that does not encode binary into base64 used when content should not actually be used, for instance when it is too big -
getLocale
- Specified by:
getLocale
in interfaceSendMailJob.AttachmentSupplier
-
getId
- Specified by:
getId
in interfaceSendMailJob.AttachmentSupplier
-
getFileName
- Specified by:
getFileName
in interfaceSendMailJob.AttachmentSupplier
-
getSize
public long getSize()- Specified by:
getSize
in interfaceSendMailJob.AttachmentSupplier
-
decodeBase64Binary
- Throws:
IOException
-