Packages

c

fun.mactavish.sevenz4s.updater

ArchiveUpdater7Z

final class ArchiveUpdater7Z extends AbstractArchiveUpdater[ArchiveUpdater7Z] with Adapter7Z

Concrete updater for 7Z archives.

Linear Supertypes
Adapter7Z, AbstractAdapter[CompressionEntry7Z, IOutItem7z], AbstractArchiveUpdater[ArchiveUpdater7Z], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArchiveUpdater7Z
  2. Adapter7Z
  3. AbstractAdapter
  4. AbstractArchiveUpdater
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ArchiveUpdater7Z()

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 = CompressionEntry7Z
    Attributes
    protected
    Definition Classes
    ArchiveUpdater7Z → AbstractArchiveUpdater
  3. type TItem = IOutItem7z
    Attributes
    protected
    Definition Classes
    ArchiveUpdater7Z → 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[CompressionEntry7Z]): ArchiveUpdater7Z

    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
    ArchiveUpdater7Z → AbstractArchiveUpdater
  4. def +=(entry: TEntry): ArchiveUpdater7Z

    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): ArchiveUpdater7Z

    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: CompressionEntry7Z, template: IOutItem7z): IOutItem7z

    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
    Adapter7Z → AbstractAdapter
  8. def adaptItemToEntry(item: IOutItem7z): CompressionEntry7Z

    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
    Adapter7Z → AbstractAdapter
  9. def append(entries: Seq[CompressionEntry7Z]): ArchiveUpdater7Z

    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
    ArchiveUpdater7Z → AbstractArchiveUpdater
  10. def append(entry: TEntry): ArchiveUpdater7Z

    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
    ArchiveUpdater7Z → AbstractArchiveUpdater
  16. def from(src: Either[Path, InputStream]): ArchiveUpdater7Z

    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): ArchiveUpdater7Z

    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): ArchiveUpdater7Z

    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]): ArchiveUpdater7Z
    Definition Classes
    AbstractArchiveUpdater
  28. def update(f: (TEntry) => TEntry): ArchiveUpdater7Z

    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): ArchiveUpdater7Z

    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 Adapter7Z

Inherited from AbstractAdapter[CompressionEntry7Z, IOutItem7z]

Inherited from AbstractArchiveUpdater[ArchiveUpdater7Z]

Inherited from AnyRef

Inherited from Any

Ungrouped