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 class
AbstractStorage.AppenderStream
class
AbstractStorage.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 int
appendBytes(int record, byte[] bytes)
AbstractStorage.AppenderStream
appendStream(int record)
abstract void
checkSanity(int record)
abstract int
createNewRecord(int requiredLength)
abstract void
deleteRecord(int record)
abstract int
ensureCapacity(int attAddress, int capacity)
abstract boolean
flushSome()
abstract int
getVersion()
abstract byte[]
readBytes(int record)
DataInputStream
readStream(int record)
abstract void
setVersion(int version)
abstract void
writeBytes(int record, byte[] bytes)
AbstractStorage.StorageDataOutput
writeStream(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)
-
-