Package com.runemate.game.cache.file
Class ReferenceTable
- java.lang.Object
-
- com.runemate.game.cache.file.ReferenceTable
-
public class ReferenceTable extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReferenceTable(Js5IndexFile file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(byte[] data)
boolean
exists(int group)
int
getIndexOfFileHash(int group, int hash)
int
getIndexOfGroupHash(int hash)
int[]
groups()
void
initialize(Js5IndexFile meta, Js5Dat2File cache)
boolean
initialized()
java.util.Map<java.lang.Integer,byte[]>
load(int group)
java.util.Map<java.lang.Integer,byte[]>
load(int group, int[] xtea_keys)
java.util.Map<java.lang.Integer,byte[]>
load(java.lang.String group)
java.util.Map<java.lang.Integer,byte[]>
load(java.lang.String group, int[] xtea_keys)
java.util.Map<java.lang.Integer,byte[]>
loadLandscape(int group, int[] xtea_keys)
byte[]
readChunk(Js5Dat2File cache, InitialChunkInfo chunk)
-
-
-
Constructor Detail
-
ReferenceTable
public ReferenceTable(Js5IndexFile file)
-
-
Method Detail
-
getIndexOfGroupHash
public int getIndexOfGroupHash(int hash)
-
getIndexOfFileHash
public int getIndexOfFileHash(int group, int hash)
-
initialize
public void initialize(Js5IndexFile meta, Js5Dat2File cache) throws java.io.IOException
- Throws:
java.io.IOException
-
initialized
public boolean initialized()
-
readChunk
public byte[] readChunk(Js5Dat2File cache, InitialChunkInfo chunk) throws java.io.IOException
- Throws:
java.io.IOException
-
decode
public void decode(byte[] data)
-
groups
public int[] groups()
-
exists
public boolean exists(int group)
-
load
public java.util.Map<java.lang.Integer,byte[]> load(java.lang.String group)
-
load
public java.util.Map<java.lang.Integer,byte[]> load(int group)
-
load
public java.util.Map<java.lang.Integer,byte[]> load(int group, int[] xtea_keys)
-
loadLandscape
public java.util.Map<java.lang.Integer,byte[]> loadLandscape(int group, int[] xtea_keys)
-
load
public java.util.Map<java.lang.Integer,byte[]> load(java.lang.String group, int[] xtea_keys)
-
-