Class ContentPackageBinaryFile


  • public final class ContentPackageBinaryFile
    extends Object
    Binary to be added to content package.
    • Method Detail

      • getInputStream

        public InputStream getInputStream​(io.wcm.devops.conga.generator.UrlFileManager urlFileManager,
                                          File targetDir)
                                   throws IOException
        Parameters:
        urlFileManager - URL file manager
        targetDir - Target directory for configuration
        Returns:
        Input stream with binary data of file.
        Throws:
        IOException - I/O exception
      • getPath

        public String getPath()
        Returns:
        Target path for file (including file name).
      • deleteIfRequired

        public void deleteIfRequired​(io.wcm.devops.conga.generator.UrlFileManager urlFileManager,
                                     File targetDir)
                              throws IOException
        If delete was configured for the file delete it.
        Parameters:
        urlFileManager - URL file manager
        targetDir - Target directory for configuration
        Throws:
        IOException - I/O exception