RSCEL is a lightweight RuneScape cache editing library for the revision 317. It aims for providing an easy-to-use API to access and edit the files in the cache directly.
Accessing a cache:
String dir = System.getProperty("user.home") + ".myCache/";
Cache cache = new Cache(dir);
Using a file store:
FileStore fs = cache.getFileStore(Cache.MODEL_FILE_STORE);
byte[] data = fs.readFile(123);
fs.writeFile(123, data);
Using a file system:
FileSystem fs = cache.getFileSystem(Cache.CONFIG_FILE_SYSTEM);
byte[] data = fs.readFile("flo.dat");
fs.writeFile("flo.dat", data);
Using background IO with file stores:
fs.readFileInBackground(123, data -> {
// do something with data
});
fs.writeFileInBackground(123, data);