Package net.runelite.cache.fs.jagex
Class DataFile
- java.lang.Object
-
- net.runelite.cache.fs.jagex.DataFile
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class DataFile extends Object implements Closeable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclose()byte[]read(int indexId, int archiveId, int sector, int size)DataFileWriteResultwrite(int indexId, int archiveId, byte[] compressedData)
-
-
-
Constructor Detail
-
DataFile
public DataFile(File file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
clear
public void clear() throws IOException- Throws:
IOException
-
read
public byte[] read(int indexId, int archiveId, int sector, int size) throws IOException- Parameters:
indexId- expected index of archive of contents being readarchiveId- expected archive of contents being readsector- sector to start reading atsize- size of file- Returns:
- Throws:
IOException
-
write
public DataFileWriteResult write(int indexId, int archiveId, byte[] compressedData) throws IOException
- Throws:
IOException
-
-