Class ContentPackageBinaryFile
- java.lang.Object
-
- io.wcm.devops.conga.plugins.aem.util.ContentPackageBinaryFile
-
public final class ContentPackageBinaryFile extends Object
Binary to be added to content package.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteIfRequired(io.wcm.devops.conga.generator.UrlFileManager urlFileManager, File targetDir)
If delete was configured for the file delete it.InputStream
getInputStream(io.wcm.devops.conga.generator.UrlFileManager urlFileManager, File targetDir)
String
getPath()
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream(io.wcm.devops.conga.generator.UrlFileManager urlFileManager, File targetDir) throws IOException
- Parameters:
urlFileManager
- URL file managertargetDir
- 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 managertargetDir
- Target directory for configuration- Throws:
IOException
- I/O exception
-
-