Class ICopyableConverter

java.lang.Object
com.vdoc.sdk.commons.io.filecenter.ICopyableConverter

public class ICopyableConverter extends Object
Interface Copyable converter
  • Method Details

    • convertIAttachement

      public static ICopyable convertIAttachement(IAttachment attachment)
      Convert IAttachement
      Parameters:
      attachment - the attachment
      Returns:
      the copied file from the attachement
    • convertFile

      public static ICopyable convertFile(File file) throws FileNotFoundException
      Convert file
      Parameters:
      file - the file
      Returns:
      the copied file from the given file
      Throws:
      FileNotFoundException - if the file is not found
    • convertIAttachementCollection

      public static Collection<ICopyable> convertIAttachementCollection(Collection<IAttachment> attachments)
      Convert IAttachement collection
      Parameters:
      attachments - the attachments
      Returns:
      the copied files from the attachements
    • convertFileCollection

      public static Collection<ICopyable> convertFileCollection(Collection<File> files) throws FileNotFoundException
      Convert file collection
      Parameters:
      files - the files
      Returns:
      the copied files from the given files
      Throws:
      FileNotFoundException - if a file is not found