Class FileLink

  • Direct Known Subclasses:
    AttachmentLink

    public class FileLink
    extends Link
    A link to a file that can be accessed through the Web.
    Author:
    mmoquillon
    • Constructor Detail

      • FileLink

        public FileLink​(String linkUrl,
                        String linkLabel,
                        long linkSize)
        Constructs a new link with the specified URL, labels and file size.
        Parameters:
        linkUrl - the URL of the linked file.
        linkLabel - the label to render for that link.
        linkSize - the size in byte of the linked file.
    • Method Detail

      • getLinkSize

        public long getLinkSize()
        Gets the size of the file referred by this link.
        Returns:
        the size in bytes of the linked file.