Class Attachment

java.lang.Object
xal.extension.logbook.Attachment
Direct Known Subclasses:
OlogAttachment

public class Attachment extends Object
This class supports different types of attachments: File, InputStream, and WritableImage objects.
Author:
Juan F. Esteban Müller <JuanF.EstebanMuller@ess.eu>
  • Constructor Details

    • Attachment

      protected Attachment()
      Empty constructor to be used only by subclasses.
    • Attachment

      public Attachment(File file) throws IOException
      Creates a new Attachment instance from a File object.
      Parameters:
      file -
      Throws:
      IOException
    • Attachment

      public Attachment(String fileName, InputStream fileContent)
      Creates a new Attachment from an InputStream.
      Parameters:
      fileName - Filename, including extension.
      fileContent - An InputStream object. If it is an image, it will recognize it.
  • Method Details