Class FileAttachment


  • public class FileAttachment
    extends java.lang.Object

    Class that contains an attachment for including into PDF file.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 19/08/2020.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileAttachment​(java.lang.String attName, java.lang.String attDescription)
      Constructor method for the class FileAttachment.java.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getContent()
      Gets the value of the attachment content.
      java.lang.String getDescription()
      Gets the value of the attachment description.
      java.lang.String getName()
      Gets the value of the attachment name.
      void setContent​(byte[] attContent)
      Sets the value of the attachment content.
      void setDescription​(java.lang.String attDescription)
      Sets the value of the attachment description.
      void setName​(java.lang.String attName)
      Sets the value of the attachment name.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileAttachment

        public FileAttachment​(java.lang.String attName,
                              java.lang.String attDescription)
        Constructor method for the class FileAttachment.java.
        Parameters:
        attName - Attachment name.
        attDescription - Attachment description.
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the value of the attachment name.
        Returns:
        the value of the attachment name.
      • setName

        public void setName​(java.lang.String attName)
        Sets the value of the attachment name.
        Parameters:
        attName - The value for the attachment name.
      • getDescription

        public java.lang.String getDescription()
        Gets the value of the attachment description.
        Returns:
        the value of the attachment description.
      • setDescription

        public void setDescription​(java.lang.String attDescription)
        Sets the value of the attachment description.
        Parameters:
        attDescription - The value for the attachment description.
      • getContent

        public byte[] getContent()
        Gets the value of the attachment content.
        Returns:
        the value of the attachment content.
      • setContent

        public void setContent​(byte[] attContent)
        Sets the value of the attachment content.
        Parameters:
        attContent - The value for the attachment content.