Package net.runelite.cache.fs
Interface Storage
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DiskStorage,FlatStorage
public interface Storage extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()voidinit(Store store)byte[]load(int index, int archive)voidload(Store store)default byte[]loadArchive(Archive archive)voidsave(Store store)default voidsaveArchive(Archive archive, byte[] data)voidstore(int index, int archive, byte[] data)
-
-
-
Method Detail
-
init
void init(Store store) throws IOException
- Throws:
IOException
-
close
void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
load
void load(Store store) throws IOException
- Throws:
IOException
-
save
void save(Store store) throws IOException
- Throws:
IOException
-
load
byte[] load(int index, int archive) throws IOException- Throws:
IOException
-
store
void store(int index, int archive, byte[] data) throws IOException- Throws:
IOException
-
loadArchive
default byte[] loadArchive(Archive archive) throws IOException
- Throws:
IOException
-
saveArchive
default void saveArchive(Archive archive, byte[] data) throws IOException
- Throws:
IOException
-
-