public class AttachmentLoader extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Attachment> |
loadAttachments(InputStream in)
reads the attachments from the given inputstream and returns the
attachment db
|
static boolean |
validateAttachment(Attachment currentAttachment)
validates the current attachment
|
public static Map<String,Attachment> loadAttachments(InputStream in) throws IOException
in - inputstream the given file containing all attachmentsIOException - if the attachments in the given file can not be loaded or an
attachment is not validpublic static boolean validateAttachment(Attachment currentAttachment)
currentAttachment - given attachmentCopyright © 2017. All rights reserved.