类 TarLayoutWriter

java.lang.Object
cn.taketoday.buildpack.platform.io.TarLayoutWriter
所有已实现的接口:
Layout, Closeable, AutoCloseable

class TarLayoutWriter extends Object implements Layout, Closeable
Layout for writing TAR archive content directly to an OutputStream.
作者:
Phillip Webb, Scott Frederick
  • 字段详细资料

    • 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

      public void directory(String name, Owner owner, int mode) throws IOException
      从接口复制的说明: Layout
      Add a directory to the content.
      指定者:
      directory 在接口中 Layout
      参数:
      name - the full name of the directory to add
      owner - the owner of the directory
      mode - the permissions for the file
      抛出:
      IOException - on IO error
    • file

      public void file(String name, Owner owner, int mode, Content content) throws IOException
      从接口复制的说明: Layout
      Write a file to the content.
      指定者:
      file 在接口中 Layout
      参数:
      name - the full name of the file to add
      owner - the owner of the file
      mode - the permissions for the file
      content - the content to add
      抛出:
      IOException - on IO error
    • createDirectoryEntry

      private org.apache.commons.compress.archivers.tar.TarArchiveEntry createDirectoryEntry(String name, Owner owner, int mode)
    • createFileEntry

      private org.apache.commons.compress.archivers.tar.TarArchiveEntry createFileEntry(String name, Owner owner, int mode, int size)
    • createEntry

      private org.apache.commons.compress.archivers.tar.TarArchiveEntry createEntry(String name, Owner owner, byte linkFlag, int mode, int size)
    • finish

      void finish() throws IOException
      抛出:
      IOException
    • close

      public void close() throws IOException
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 Closeable
      抛出:
      IOException