Package com.intellij.util.io
Class PagedFileStorage
- java.lang.Object
-
- com.intellij.util.io.PagedFileStorage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPagedFileStorage.StorageLock
-
Constructor Summary
Constructors Constructor Description PagedFileStorage(File file, PagedFileStorage.StorageLock lock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidforce()byteget(int index)voidget(int index, byte[] dst, int offset, int length)bytegetByte(int addr)FilegetFile()intgetInt(int addr)longgetLong(int addr)booleanisDirty()longlength()voidput(int index, byte value)voidput(int index, byte[] src, int offset, int length)voidputByte(int addr, byte b)voidputInt(int addr, int value)voidputLong(int addr, long value)voidresize(int newSize)
-
-
-
Constructor Detail
-
PagedFileStorage
public PagedFileStorage(File file, PagedFileStorage.StorageLock lock) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getFile
public File getFile()
-
putInt
public void putInt(int addr, int value)
-
getInt
public int getInt(int addr)
-
putLong
public void putLong(int addr, long value)
-
putByte
public void putByte(int addr, byte b)
-
getByte
public byte getByte(int addr)
-
getLong
public long getLong(int addr)
-
get
public byte get(int index)
-
put
public void put(int index, byte value)
-
get
public void get(int index, byte[] dst, int offset, int length)
-
put
public void put(int index, byte[] src, int offset, int length)
-
close
public void close()
-
resize
public void resize(int newSize) throws IOException- Throws:
IOException
-
length
public final long length()
-
-