Package net.runelite.cache.fs.jagex
Class DiskStorage
- java.lang.Object
-
- net.runelite.cache.fs.jagex.DiskStorage
-
- All Implemented Interfaces:
AutoCloseable,Storage
public class DiskStorage extends Object implements Storage
-
-
Constructor Summary
Constructors Constructor Description DiskStorage(File folder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidinit(Store store)byte[]load(int index, int archive)voidload(Store store)byte[]readIndex(int indexId)voidsave(Store store)voidstore(int index, int archive, byte[] archiveData)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.runelite.cache.fs.Storage
loadArchive, saveArchive
-
-
-
-
Constructor Detail
-
DiskStorage
public DiskStorage(File folder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
init
public void init(Store store) throws IOException
- Specified by:
initin interfaceStorage- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStorage- Throws:
IOException
-
load
public void load(Store store) throws IOException
- Specified by:
loadin interfaceStorage- Throws:
IOException
-
readIndex
public byte[] readIndex(int indexId) throws IOException- Throws:
IOException
-
save
public void save(Store store) throws IOException
- Specified by:
savein interfaceStorage- Throws:
IOException
-
load
public byte[] load(int index, int archive) throws IOException- Specified by:
loadin interfaceStorage- Throws:
IOException
-
store
public void store(int index, int archive, byte[] archiveData) throws IOException- Specified by:
storein interfaceStorage- Throws:
IOException
-
-