Package com.intellij.util.io.storage
Class AbstractStorage
- java.lang.Object
-
- com.intellij.util.io.storage.AbstractStorage
-
- All Implemented Interfaces:
Disposable,Forceable
public abstract class AbstractStorage extends Object implements Forceable, Disposable
- Author:
- Dmitry Avdeev
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAbstractStorage.AppenderStreamclassAbstractStorage.StorageDataOutput-
Nested classes/interfaces inherited from interface com.intellij.openapi.Disposable
Disposable.Parent
-
-
Constructor Summary
Constructors Constructor Description AbstractStorage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract intappendBytes(int record, byte[] bytes)AbstractStorage.AppenderStreamappendStream(int record)abstract voidcheckSanity(int record)abstract intcreateNewRecord(int requiredLength)abstract voiddeleteRecord(int record)abstract intensureCapacity(int attAddress, int capacity)abstract booleanflushSome()abstract intgetVersion()abstract byte[]readBytes(int record)DataInputStreamreadStream(int record)abstract voidsetVersion(int version)abstract voidwriteBytes(int record, byte[] bytes)AbstractStorage.StorageDataOutputwriteStream(int record)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.intellij.openapi.Disposable
dispose
-
-
-
-
Method Detail
-
createNewRecord
public abstract int createNewRecord(int requiredLength) throws IOException- Throws:
IOException
-
deleteRecord
public abstract void deleteRecord(int record)
-
writeStream
public AbstractStorage.StorageDataOutput writeStream(int record)
-
appendStream
public AbstractStorage.AppenderStream appendStream(int record)
-
readStream
public DataInputStream readStream(int record)
-
readBytes
public abstract byte[] readBytes(int record)
-
checkSanity
public abstract void checkSanity(int record)
-
flushSome
public abstract boolean flushSome()
-
getVersion
public abstract int getVersion()
-
setVersion
public abstract void setVersion(int version)
-
appendBytes
protected abstract int appendBytes(int record, byte[] bytes)
-
writeBytes
public abstract void writeBytes(int record, byte[] bytes)
-
ensureCapacity
public abstract int ensureCapacity(int attAddress, int capacity)
-
-