object SevenZ4S
Provides some utility functions.
- Alphabetic
- By Inheritance
- SevenZ4S
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- def compress(format: CreatableArchiveFormat, from: Path, to: Path): Unit
Useful utility function to compress archive on local file system.
Useful utility function to compress archive on local file system.
- format
specifies the format of wanted archive
- from
path of the directory or the file to be compressed,
GZip
andBZip2
format can only compress single file- to
path of directory where the generated archive to be put into, the name of the archive will be
from
's base name plus format-specific extension name, ifto
doesn't exist yet, it will be automatically created
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extract(from: Path, to: Path): Unit
Useful utility function to extract archive on local file system.
Useful utility function to extract archive on local file system.
- from
path of the archive file
- to
path of directory where the archive's content extracts into, if
to
doesn't exist yet, it will be automatically created
- def formatOf(archive: Either[Path, InputStream]): ArchiveFormat
Gets the format of given archive.
Gets the format of given archive.
If you already obtain an instance of
ArchiveExtractor
, use itsarchiveFormat
method instead.- archive
archive source
- returns
the enumeration of
ArchiveFormat
- def get7ZEntriesFrom(root: Path): Seq[CompressionEntry7Z]
Generates a
CompressionEntry7Z
from given file or directory path.Generates a
CompressionEntry7Z
from given file or directory path.- root
a file or directory path
- returns
archive entries representing given file(s), with order in
Seq
unknown.
- def getBZip2EntryFrom(f: Path): CompressionEntryBZip2
Generates a
CompressionEntryBZip2
from given file path.Generates a
CompressionEntryBZip2
from given file path.- f
a file path
- returns
archive entry representing given file
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getGZipEntryFrom(f: Path): CompressionEntryGZip
Generates a
CompressionEntryGZip
from given file path.Generates a
CompressionEntryGZip
from given file path.- f
a file path
- returns
archive entry representing given file
- def getTarEntriesFrom(root: Path): Seq[CompressionEntryTar]
Generates a
CompressionEntryTar
from given file or directory path.Generates a
CompressionEntryTar
from given file or directory path.- root
a file or directory path
- returns
archive entries representing given file(s), with order in
Seq
unknown.
- def getZipEntriesFrom(root: Path): Seq[CompressionEntryZip]
Generates a
CompressionEntryZip
from given file or directory path.Generates a
CompressionEntryZip
from given file or directory path.- root
a file or directory path
- returns
archive entries representing given file(s), with order in
Seq
unknown.
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated