Packages

c

fun.mactavish.sevenz4s.updater

ArchiveUpdaterTar

final class ArchiveUpdaterTar extends AbstractArchiveUpdater[ArchiveUpdaterTar] with AdapterTar

Concrete updater for Tar archives.

Linear Supertypes
AdapterTar, AbstractAdapter[CompressionEntryTar, IOutItemTar], AbstractArchiveUpdater[ArchiveUpdaterTar], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArchiveUpdaterTar
  2. AdapterTar
  3. AbstractAdapter
  4. AbstractArchiveUpdater
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ArchiveUpdaterTar()

Type Members

  1. trait DefaultIOutCreateCallback extends IOutCreateCallback[AbstractArchiveUpdater.E.TItem] with ICryptoGetTextPassword

    DefaultIOutCreateCallback extends IOutCreateCallback[TItem] and ICryptoGetTextPassword, and it implements progress related behavior with simply doing nothing.

    DefaultIOutCreateCallback extends IOutCreateCallback[TItem] and ICryptoGetTextPassword, and it implements progress related behavior with simply doing nothing.

    Definition Classes
    AbstractArchiveUpdater
  2. type TEntry = CompressionEntryTar
    Attributes
    protected
    Definition Classes
    ArchiveUpdaterTar → AbstractArchiveUpdater
  3. type TItem = IOutItemTar
    Attributes
    protected
    Definition Classes
    ArchiveUpdaterTar → AbstractArchiveUpdater

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++=(entries: Seq[CompressionEntryTar]): ArchiveUpdaterTar

    Alias for append.

    Alias for append.

    Appends given entries to the archive.

    Note that some archive formats (bzip2, gzip) only supports compression of single archive entry (thus they're usually used along with tar). So ++= with Seq[TEntry] is made protected, only those supporting multi-archive override it to public.

    entries

    entries to append

    returns

    updater itself so that method calls can be chained

    Definition Classes
    ArchiveUpdaterTar → AbstractArchiveUpdater
  4. def +=(entry: TEntry): ArchiveUpdaterTar

    Alias for append.

    Alias for append.

    Appends given entry to the archive.

    entry

    entry to append

    returns

    updater itself so that method calls can be chained

    Definition Classes
    AbstractArchiveUpdater
  5. def -=(entry: TEntry): ArchiveUpdaterTar

    Alias for remove.

    Alias for remove.

    Removes given entry from the archive.

    Note that given entry must equals exactly to one entry in the archive. It's recommended that the parameter is exactly pulled from the archive through other methods. Avoid constructing the entry by yourself.

    entry

    one entry to remove from the archive

    returns

    updater itself so that method calls can be chained

    Definition Classes
    AbstractArchiveUpdater
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def adaptEntryToItem(entry: CompressionEntryTar, template: IOutItemTar): IOutItemTar

    adaptEntryToItem is an adapter from CompressionEntry to IOutItem, it requires an default instance of IOutItem as a template so that it can work without the knowledge of the construction of it.

    adaptEntryToItem is an adapter from CompressionEntry to IOutItem, it requires an default instance of IOutItem as a template so that it can work without the knowledge of the construction of it.

    entry

    input CompressionEntry for adapting

    template

    an default instance of IOutItem

    returns

    IOutItem whose properties are already set according to entry

    Attributes
    protected
    Definition Classes
    AdapterTar → AbstractAdapter
  8. def adaptItemToEntry(item: IOutItemTar): CompressionEntryTar

    adaptItemToEntry is an adapter from IOutItem to CompressionEntry, and unlike adaptEntryToItem, it knows how to construct CompressionEntry, so template isn't required.

    adaptItemToEntry is an adapter from IOutItem to CompressionEntry, and unlike adaptEntryToItem, it knows how to construct CompressionEntry, so template isn't required.

    item

    input IOutItem for adapting

    returns

    CompressionEntry whose properties are already set according to item

    Attributes
    protected
    Definition Classes
    AdapterTar → AbstractAdapter
  9. def append(entries: Seq[CompressionEntryTar]): ArchiveUpdaterTar

    Appends given entries to the archive.

    Appends given entries to the archive.

    Note that some archive formats (bzip2, gzip) only supports compression of single archive entry (thus they're usually used along with tar). So append with Seq[TEntry] is made protected, only those supporting multi-archive override it to public.

    entries

    entries to append

    returns

    updater itself so that method calls can be chained

    Definition Classes
    ArchiveUpdaterTar → AbstractArchiveUpdater
  10. def append(entry: TEntry): ArchiveUpdaterTar

    Appends given entry to the archive.

    Appends given entry to the archive.

    entry

    entry to append

    returns

    updater itself so that method calls can be chained

    Definition Classes
    AbstractArchiveUpdater
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. val format: net.sf.sevenzipjbinding.ArchiveFormat

    Subclasses should determine the format of this archive.

    Subclasses should determine the format of this archive.

    Attributes
    protected
    Definition Classes
    ArchiveUpdaterTar → AbstractArchiveUpdater
  16. def from(src: Either[Path, InputStream]): ArchiveUpdaterTar

    Specifies where archive stream comes from.

    Specifies where archive stream comes from.

    For Path, it reads the given file and closes it afterwards during each operation. For InputStream, it reads all bytes from the input stream during each operation which costs O(N) both on space and time. Therefore, it's usually more efficient to pass Path when you intend to provide data from a file.

    Additionally, in the second case, remember to close InputStream on your own afterwards.

    src

    where archive stream comes from

    returns

    updater itself so that method calls can be chained

    Definition Classes
    AbstractArchiveUpdater
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def remove(entry: TEntry): ArchiveUpdaterTar

    Removes given entry from the archive.

    Removes given entry from the archive.

    Note that given entry must equals exactly to one entry in the archive. It's recommended that the parameter is exactly pulled from the archive through other methods. Avoid constructing the entry by yourself.

    entry

    one entry to remove from the archive

    returns

    updater itself so that method calls can be chained

    Definition Classes
    AbstractArchiveUpdater
  24. def removeWhere(pred: (TEntry) => Boolean): ArchiveUpdaterTar

    Removes entries met given assumption from the archive.

    Removes entries met given assumption from the archive.

    Each entry is supplied for assumption, the source property of supplied entries is null as it's meaningless here.

    pred

    assumption on each entry

    returns

    updater itself so that method calls can be chained

    Definition Classes
    AbstractArchiveUpdater
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def towards(dst: Either[Path, OutputStream]): ArchiveUpdaterTar
    Definition Classes
    AbstractArchiveUpdater
  28. def update(f: (TEntry) => TEntry): ArchiveUpdaterTar

    Iterates every entry and applies given update function.

    Iterates every entry and applies given update function.

    Update function takes each entry as input and ought to return one entry. If the returned entry contains non-null source, the inner entry will change its data to what comes from the given source. If the returned entry contains different properties from the original one, the inner entry will change its properties accordingly.

    Adding or deleting an entry which changes the number of entries is not supported here.

    f

    update function

    returns

    updater itself so that method calls can be chained

    Definition Classes
    AbstractArchiveUpdater
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. def withPassword(passwd: String): ArchiveUpdaterTar

    Provides password for encrypted archive.

    Provides password for encrypted archive. Note that supplying no password for encrypted archive will result in a silent failure.

    passwd

    password

    returns

    updater itself so that method calls can be chained

    Definition Classes
    AbstractArchiveUpdater

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AdapterTar

Inherited from AbstractAdapter[CompressionEntryTar, IOutItemTar]

Inherited from AbstractArchiveUpdater[ArchiveUpdaterTar]

Inherited from AnyRef

Inherited from Any

Ungrouped