接口 ContainerContent
public interface ContainerContent
Additional content that can be written to a created container.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb
-
方法概要
修饰符和类型方法说明Return the actual content to be added.Return the destination path where the content should be added.static ContainerContentof(TarArchive archive) Factory method to create a newContainerContentinstance written to the root of the container.static ContainerContentof(TarArchive archive, String destinationPath) Factory method to create a newContainerContentinstance.
-
方法详细资料
-
getArchive
TarArchive getArchive()Return the actual content to be added.- 返回:
- the content
-
getDestinationPath
String getDestinationPath()Return the destination path where the content should be added.- 返回:
- the destination path
-
of
Factory method to create a newContainerContentinstance written to the root of the container.- 参数:
archive- the archive to add- 返回:
- a new
ContainerContentinstance
-
of
Factory method to create a newContainerContentinstance.- 参数:
archive- the archive to adddestinationPath- the destination path within the container- 返回:
- a new
ContainerContentinstance
-