Class TarFormat

java.lang.Object
org.eclipse.jgit.archive.BaseFormat
org.eclipse.jgit.archive.TarFormat
All Implemented Interfaces:
org.eclipse.jgit.api.ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.tar.TarArchiveEntry>>

public final class TarFormat extends BaseFormat implements org.eclipse.jgit.api.ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.tar.TarArchiveEntry>>
Unix TAR format (ustar + some PAX extensions).
  • Constructor Details

    • TarFormat

      public TarFormat()
  • Method Details

    • createArchiveOutputStream

      public org.apache.commons.compress.archivers.ArchiveOutputStream createArchiveOutputStream(OutputStream s) throws IOException
      Specified by:
      createArchiveOutputStream in interface org.eclipse.jgit.api.ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.tar.TarArchiveEntry>>
      Throws:
      IOException
    • createArchiveOutputStream

      public org.apache.commons.compress.archivers.ArchiveOutputStream createArchiveOutputStream(OutputStream s, Map<String,Object> o) throws IOException
      Specified by:
      createArchiveOutputStream in interface org.eclipse.jgit.api.ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.tar.TarArchiveEntry>>
      Throws:
      IOException
    • putEntry

      public void putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.tar.TarArchiveEntry> out, org.eclipse.jgit.lib.ObjectId tree, String path, org.eclipse.jgit.lib.FileMode mode, org.eclipse.jgit.lib.ObjectLoader loader) throws IOException
      Specified by:
      putEntry in interface org.eclipse.jgit.api.ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.tar.TarArchiveEntry>>
      Throws:
      IOException
    • suffixes

      public Iterable<String> suffixes()
      Specified by:
      suffixes in interface org.eclipse.jgit.api.ArchiveCommand.Format<org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.tar.TarArchiveEntry>>
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object