Package com.intellij.util.io
Class RandomAccessDataFile
- java.lang.Object
-
- com.intellij.util.io.RandomAccessDataFile
-
-
Field Summary
Fields Modifier and Type Field Description static intseekcountstatic longtotalReadBytesstatic inttotalReadsstatic longtotalWriteBytesstatic inttotalWrites
-
Constructor Summary
Constructors Constructor Description RandomAccessDataFile(File file)RandomAccessDataFile(File file, PagePool pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidflushPage(Page page, int start, int end)voidflushSomePages(int maxPagesToFlush)voidforce()voidget(long addr, byte[] bytes, int off, int len)bytegetByte(long addr)intgetInt(long addr)longgetLong(long addr)StringgetUTF(long addr)inthashCode()booleanisDirty()longlength()voidloadPage(Page page)longphysicalLength()voidput(long addr, byte[] bytes, int off, int len)voidputByte(long addr, byte b)voidputInt(long addr, int value)voidputLong(long addr, long value)voidputUTF(long addr, String value)StringtoString()
-
-
-
Constructor Detail
-
RandomAccessDataFile
public RandomAccessDataFile(File file) throws IOException
- Throws:
IOException
-
RandomAccessDataFile
public RandomAccessDataFile(File file, PagePool pool) throws IOException
- Throws:
IOException
-
-
Method Detail
-
put
public void put(long addr, byte[] bytes, int off, int len)
-
get
public void get(long addr, byte[] bytes, int off, int len)
-
putInt
public void putInt(long addr, int value)
-
getInt
public int getInt(long addr)
-
putLong
public void putLong(long addr, long value)
-
putByte
public void putByte(long addr, byte b)
-
getByte
public byte getByte(long addr)
-
getLong
public long getLong(long addr)
-
getUTF
public String getUTF(long addr)
-
putUTF
public void putUTF(long addr, String value)
-
length
public long length()
-
physicalLength
public long physicalLength()
-
dispose
public void dispose()
-
flushSomePages
public void flushSomePages(int maxPagesToFlush)
-
loadPage
public void loadPage(Page page)
-
flushPage
public void flushPage(Page page, int start, int end)
-
-