Package org.helm.notation2
Class AttachmentLoader
java.lang.Object
org.helm.notation2.AttachmentLoader
public class AttachmentLoader extends Object
loads attachments from a given input stream
- Author:
- hecht
-
Method Summary
Modifier and Type Method Description static Map<String,Attachment>loadAttachments(InputStream in)reads the attachments from the given inputstream and returns the attachment dbstatic booleanvalidateAttachment(Attachment currentAttachment)validates the current attachment
-
Method Details
-
loadAttachments
reads the attachments from the given inputstream and returns the attachment db- Parameters:
in- inputstream the given file containing all attachments- Returns:
- attachment db
- Throws:
IOException- if the attachments in the given file can not be loaded or an attachment is not valid
-
validateAttachment
validates the current attachment- Parameters:
currentAttachment- given attachment- Returns:
- true, if the current attachment is valid, false otherwisesr
-