Package net.runelite.cache.fs.jagex
Class IndexFile
- java.lang.Object
-
- net.runelite.cache.fs.jagex.IndexFile
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class IndexFile extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description IndexFile(int indexFileId, java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)voidclear()voidclose()booleanequals(java.lang.Object o)intgetIndexCount()intgetIndexFileId()inthashCode()IndexEntryread(int id)voidwrite(IndexEntry entry)
-
-
-
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
-
write
public void write(IndexEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public IndexEntry read(int id) throws java.io.IOException
- Throws:
java.io.IOException
-
getIndexCount
public int getIndexCount() throws java.io.IOException- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getIndexFileId
public int getIndexFileId()
-
-