final class ArchiveUpdater7Z extends AbstractArchiveUpdater[ArchiveUpdater7Z] with Adapter7Z
Concrete updater for 7Z archives.
- Alphabetic
- By Inheritance
- ArchiveUpdater7Z
- Adapter7Z
- AbstractAdapter
- AbstractArchiveUpdater
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ArchiveUpdater7Z()
Type Members
- trait DefaultIOutCreateCallback extends IOutCreateCallback[AbstractArchiveUpdater.E.TItem] with ICryptoGetTextPassword
DefaultIOutCreateCallback
extendsIOutCreateCallback[TItem]
andICryptoGetTextPassword
, and it implements progress related behavior with simply doing nothing.DefaultIOutCreateCallback
extendsIOutCreateCallback[TItem]
andICryptoGetTextPassword
, and it implements progress related behavior with simply doing nothing.- Definition Classes
- AbstractArchiveUpdater
- type TEntry = CompressionEntry7Z
- Attributes
- protected
- Definition Classes
- ArchiveUpdater7Z → AbstractArchiveUpdater
- type TItem = IOutItem7z
- Attributes
- protected
- Definition Classes
- ArchiveUpdater7Z → AbstractArchiveUpdater
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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
- 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
- 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
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def adaptEntryToItem(entry: CompressionEntry7Z, template: IOutItem7z): IOutItem7z
adaptEntryToItem
is an adapter fromCompressionEntry
toIOutItem
, it requires an default instance ofIOutItem
as a template so that it can work without the knowledge of the construction of it.adaptEntryToItem
is an adapter fromCompressionEntry
toIOutItem
, it requires an default instance ofIOutItem
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 toentry
- Attributes
- protected
- Definition Classes
- Adapter7Z → AbstractAdapter
- def adaptItemToEntry(item: IOutItem7z): CompressionEntry7Z
adaptItemToEntry
is an adapter fromIOutItem
toCompressionEntry
, and unlikeadaptEntryToItem
, it knows how to constructCompressionEntry
, so template isn't required.adaptItemToEntry
is an adapter fromIOutItem
toCompressionEntry
, and unlikeadaptEntryToItem
, it knows how to constructCompressionEntry
, so template isn't required.- item
input
IOutItem
for adapting- returns
CompressionEntry
whose properties are already set according toitem
- Attributes
- protected
- Definition Classes
- Adapter7Z → AbstractAdapter
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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. ForInputStream
, 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 passPath
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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def towards(dst: Either[Path, OutputStream]): ArchiveUpdater7Z
- Definition Classes
- AbstractArchiveUpdater
- 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
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated