object IndexBasedZipFsOps extends IndexBasedZipOps
The concrete implementation of sbt.internal.inc.IndexBasedZipOps based on sbt.internal.inc.zip.ZipCentralDir.
- Alphabetic
- By Inheritance
- IndexBasedZipFsOps
- IndexBasedZipOps
- CreateZip
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type CentralDir = ZipCentralDir
Represents the central directory (index) of a zip file.
Represents the central directory (index) of a zip file. It must contain the start offset (where it is located in the zip file) and list of headers
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- type Header = Entry
Represents a header of a zip entry located inside the central directory.
Represents a header of a zip entry located inside the central directory. It has to contain the timestamp, name/path and offset to the actual data in zip file.
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- final class CachedStamps extends AnyRef
Reads timestamps of zip entries.
Reads timestamps of zip entries. On the first access to a given zip it reads the timestamps once and keeps them cached for future lookups.
It only supports reading stamps from a single zip. The zip passed as an argument is only used to initialize the cache and is later ignored. This is enough as stamps are only read from the output jar.
- Definition Classes
- IndexBasedZipOps
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()
- def createZip(target: File, files: Seq[(File, String)]): Unit
- Definition Classes
- CreateZip
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getCentralDirStart(centralDir: CentralDir): Long
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getFileName(header: Header): String
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- def getFileOffset(header: Header): Long
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- def getHeaders(centralDir: CentralDir): Seq[Header]
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- def getLastModifiedTime(header: Header): Long
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def includeInArchive(zipFile: File, files: Seq[(File, String)]): Unit
Adds
files(plain files) to the specified zip file.Adds
files(plain files) to the specified zip file. Implemented by creating a new zip with the plain files. IfzipFilealready exists, the archives will be merged. Plain files are not removed after this operation.- zipFile
A zip file to add files to
- files
a sequence of tuples with actual file to include and the path in the zip where it should be put.
- Definition Classes
- IndexBasedZipOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listEntries(zipFile: File): Seq[String]
- Definition Classes
- IndexBasedZipOps
- def mergeArchives(target: Path, source: Path): Unit
- Definition Classes
- IndexBasedZipOps
- def mergeArchives(into: File, from: File): Unit
Merges two zip files.
Merges two zip files. It works by appending contents of
fromtointo. Indices are combined, in case of duplicates, the final entries that are used are fromfrom. The final merged zip is available underintopath, andfromis deleted.- into
the target zip file to merge to
- from
the source zip file that is added/merged to
into
- Definition Classes
- IndexBasedZipOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def readCentralDir(path: Path): CentralDir
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- def readCentralDir(zipFile: File): CentralDir
Reads the current index from given zip file
Reads the current index from given zip file
- zipFile
path to the zip file
- returns
current index
- Definition Classes
- IndexBasedZipOps
- def removeEntries(zipFile: File, entries: Iterable[String]): Unit
Removes specified entries from given zip file by replacing current index with a version without those entries.
Removes specified entries from given zip file by replacing current index with a version without those entries.
- zipFile
the zip file to remove entries from
- entries
paths to files inside the jar e.g. sbt/internal/inc/IndexBasedZipOps.class
- Definition Classes
- IndexBasedZipOps
- def setCentralDirStart(centralDir: CentralDir, centralDirStart: Long): Unit
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- def setFileOffset(header: Header, offset: Long): Unit
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- def setHeaders(centralDir: CentralDir, headers: Seq[Header]): Unit
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- def writeCentralDir(centralDir: CentralDir, outputStream: OutputStream): Unit
- Attributes
- protected
- Definition Classes
- IndexBasedZipFsOps → IndexBasedZipOps
- def writeCentralDir(zipFile: File, centralDir: CentralDir): Unit
Replaces index inside the zip file.
Replaces index inside the zip file.
- zipFile
the zip file that should have the index updated
- centralDir
the index to be stored in the file
- Definition Classes
- IndexBasedZipOps