Package net.runelite.cache.fs.jagex
Class DataFile
- java.lang.Object
-
- net.runelite.cache.fs.jagex.DataFile
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class DataFile extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description DataFile(java.io.File file)
-
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)
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
clear
public void clear() throws java.io.IOException- Throws:
java.io.IOException
-
read
public byte[] read(int indexId, int archiveId, int sector, int size) throws java.io.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:
java.io.IOException
-
write
public DataFileWriteResult write(int indexId, int archiveId, byte[] compressedData) throws java.io.IOException
- Throws:
java.io.IOException
-
-