类 TarLayoutWriter
java.lang.Object
cn.taketoday.buildpack.platform.io.TarLayoutWriter
- 所有已实现的接口:
Layout,Closeable,AutoCloseable
Layout for writing TAR archive content directly to an OutputStream.- 作者:
- Phillip Webb, Scott Frederick
-
字段概要
字段修饰符和类型字段说明(专用程序包) static final longprivate final org.apache.commons.compress.archivers.tar.TarArchiveOutputStream -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()private org.apache.commons.compress.archivers.tar.TarArchiveEntrycreateDirectoryEntry(String name, Owner owner, int mode) private org.apache.commons.compress.archivers.tar.TarArchiveEntrycreateEntry(String name, Owner owner, byte linkFlag, int mode, int size) private org.apache.commons.compress.archivers.tar.TarArchiveEntrycreateFileEntry(String name, Owner owner, int mode, int size) voidAdd a directory to the content.voidWrite a file to the content.(专用程序包) voidfinish()
-
字段详细资料
-
NORMALIZED_MOD_TIME
static final long NORMALIZED_MOD_TIME -
outputStream
private final org.apache.commons.compress.archivers.tar.TarArchiveOutputStream outputStream
-
-
构造器详细资料
-
TarLayoutWriter
TarLayoutWriter(OutputStream outputStream)
-
-
方法详细资料
-
directory
从接口复制的说明:LayoutAdd a directory to the content.- 指定者:
directory在接口中Layout- 参数:
name- the full name of the directory to addowner- the owner of the directorymode- the permissions for the file- 抛出:
IOException- on IO error
-
file
从接口复制的说明:LayoutWrite a file to the content.- 指定者:
file在接口中Layout- 参数:
name- the full name of the file to addowner- the owner of the filemode- the permissions for the filecontent- the content to add- 抛出:
IOException- on IO error
-
createDirectoryEntry
-
createFileEntry
-
createEntry
-
finish
- 抛出:
IOException
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 抛出:
IOException
-