Class LocalAttachment

  • All Implemented Interfaces:
    Attachment

    public class LocalAttachment
    extends Object
    implements Attachment
    An attachment that has already been downloaded. Calling download, is a noop that returns the local file.
    • Constructor Detail

      • LocalAttachment

        public LocalAttachment​(File filename)
    • Method Detail

      • getFileName

        public File getFileName()
        Description copied from interface: Attachment
        The name of the attachment file.
        Specified by:
        getFileName in interface Attachment
        Returns:
        the name of the file
      • download

        public Attachment download()
        Description copied from interface: Attachment
        Downlaods the file to local file system.
        Specified by:
        download in interface Attachment
        Returns:
        the name of the local file.