Class TarAppender

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class TarAppender
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      TarAppender​(java.io.OutputStream outputStream, java.lang.String tarId, long maxTarSize)  
      TarAppender​(java.nio.file.Path outputTarFilePath, java.lang.String tarId, long maxTarSize)  
    • Constructor Detail

      • TarAppender

        public TarAppender​(java.nio.file.Path outputTarFilePath,
                           java.lang.String tarId,
                           long maxTarSize)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • TarAppender

        public TarAppender​(java.io.OutputStream outputStream,
                           java.lang.String tarId,
                           long maxTarSize)
    • Method Detail

      • canAppend

        public boolean canAppend​(long size)
      • append

        public TarEntryDescription append​(java.lang.String entryName,
                                          java.io.InputStream inputStream,
                                          long size)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • getTarId

        public java.lang.String getTarId()
      • getEntryCount

        public int getEntryCount()
      • getBytesWritten

        public long getBytesWritten()
      • getDigestValue

        public java.lang.String getDigestValue()