GraphMine

graphmine-util / io.github.sof3.graphmine.util / KtsLoader

KtsLoader

object KtsLoader

State object to ensure system properties are set before loading a script

Functions

load fun <R> load(reader: Reader): R
Loads a script from a reader
loadCache fun <T> loadCache(md5: ByteArray, cacheFile: File, rVersion: Int, read: (DataInputStream) -> T): T?
loadSerializable fun <T : KtsBin<T, F>, F : Factory<T, F>> loadSerializable(factory: F, fis: InputStream, path: String, cacheDir: File, rVersion: Int): T
Loads a .kts file, optionally from cache and stores to cache
writeCache fun writeCache(cacheFile: File, md5: ByteArray, rVersion: Int, value: KtsBin<*, *>): Unit