Class AttachmentLoader

java.lang.Object
org.helm.notation2.AttachmentLoader

public class AttachmentLoader
extends Object
loads attachments from a given input stream
Author:
hecht
  • Method Details

    • loadAttachments

      public static Map<String,​Attachment> loadAttachments​(InputStream in) throws IOException
      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

      public static boolean validateAttachment​(Attachment currentAttachment)
      validates the current attachment
      Parameters:
      currentAttachment - given attachment
      Returns:
      true, if the current attachment is valid, false otherwisesr