Jag Archive
An interface for reading and writing .jag
archives, which are used by RuneScape Classic and early versions of RuneScape 2.
Unlike the client, this implementation is case-sensitive. Entry names should therefore be supplied in uppercase for compatibility.
This class is not thread safe.
Functions
Link copied to clipboard
Checks whether an entry exists.
Link copied to clipboard
Packs a .jag
archive into a compressed ByteBuf. The best compression method for minimising the size of the compressed archive is automatically selected. Note that this does not necessarily correspond to the minimimal amount of RAM usage at runtime.
Link copied to clipboard
Deletes an entry. Does nothing if the entry does not exist.
Link copied to clipboard
Writes an entry. If an entry with the same name hash already exists, it is overwritten.