Package org.openrs2.cache

Types

Link copied to clipboard
abstract class Archive : Flushable
Link copied to clipboard
class BufferedFileChannel(    channel: FileChannel,     readBufferSize: Int,     writeBufferSize: Int,     alloc: ByteBufAllocator = ByteBufAllocator.DEFAULT) : Flushable, Closeable
Link copied to clipboard
class Cache : Flushable, Closeable

A high-level interface for reading and writing files to and from a collection of JS5 archives.

Link copied to clipboard
class CacheArchive : Archive
Link copied to clipboard
object CacheModule : AbstractModule
Link copied to clipboard
class ChecksumTable(val entries: MutableList<Int> = mutableListOf())
Link copied to clipboard
class DiskStore : Store

A Store implementation compatible with the native main_file_cache.dat2 (or main_file_cache.dat) and main_file_cache.idx* format used by the client.

Link copied to clipboard
class DiskStoreZipWriter(    out: ZipOutputStream,     prefix: String = "cache/",     level: Int = Deflater.BEST_COMPRESSION,     timestamp: Instant = Instant.EPOCH,     alloc: ByteBufAllocator = ByteBufAllocator.DEFAULT,     legacy: Boolean = false) : Store

A specialised Store implementation that writes a cache in the native main_file_cache.dat2/main_file_cache.idx* format to a ZipOutputStream.

Link copied to clipboard
class FlatFileStore : Store

A Store implementation that represents archives as file system directories and groups as file system files. This format is much friendlier to content-addressable version control systems, such as Git, than the native format used by the client.

Link copied to clipboard
class FlatFileStoreTarWriter(    out: TarArchiveOutputStream,     prefix: String = "cache/",     timestamp: Instant = Instant.EPOCH) : Store

A specialised Store implementation that writes a cache in the FlatFileStore format to a TarArchiveOutputStream.

Link copied to clipboard
object Group
Link copied to clipboard
class JagArchive : Closeable

An interface for reading and writing .jag archives, which are used by RuneScape Classic and early versions of RuneScape 2.

Link copied to clipboard
object Js5Archive
Link copied to clipboard
object Js5Compression
Link copied to clipboard
enum Js5CompressionType : Enum<Js5CompressionType>
Link copied to clipboard
object Js5ConfigGroup
Link copied to clipboard
class Js5Index(    var protocol: Js5Protocol,     var version: Int = 0,     var hasNames: Boolean = false,     var hasDigests: Boolean = false,     var hasLengths: Boolean = false,     var hasUncompressedChecksums: Boolean = false) : MutableNamedEntryCollection<Js5Index.MutableGroup>
Link copied to clipboard
data class Js5MasterIndex(var format: MasterIndexFormat, val entries: MutableList<Js5MasterIndex.Entry> = mutableListOf())
Link copied to clipboard
class Js5Pack : Archive, Closeable

A high-level interface for reading and writing files to and from a single JS5 archive encoded in .js5 format.

Link copied to clipboard
enum Js5Protocol : Enum<Js5Protocol>
Link copied to clipboard
enum MasterIndexFormat : Enum<MasterIndexFormat>
Link copied to clipboard
interface MutableNamedEntry : NamedEntry
Link copied to clipboard
abstract class MutableNamedEntryCollection<T : MutableNamedEntry>(entryConstructor: (MutableNamedEntryCollection<T>, Int) -> T) : NamedEntryCollection<T> , MutableIterable<T>

A specialist collection type entirely designed for use by the Js5Index class.

Link copied to clipboard
interface NamedEntry
Link copied to clipboard
interface NamedEntryCollection<out T : NamedEntry> : Iterable<T>

A read-only view of a MutableNamedEntryCollection.

Link copied to clipboard
@Singleton
class RuneLiteStore @Inject constructor(alloc: ByteBufAllocator)
Link copied to clipboard
interface Store : Flushable, Closeable

A low-level interface for reading and writing raw groups directly to and from a collection of JS5 archives.

Link copied to clipboard
class StoreCorruptException(message: String) : IOException
Link copied to clipboard
class StoreFullException : IOException
Link copied to clipboard
class VersionList(val files: List<List<VersionList.File>>, val maps: Map<Int, VersionList.MapSquare>)
Link copied to clipboard
object VersionTrailer