Package com.db4o.internal.fileheader
Class FileHeader1
- java.lang.Object
-
- com.db4o.internal.fileheader.FileHeader
-
- com.db4o.internal.fileheader.NewFileHeaderBase
-
- com.db4o.internal.fileheader.FileHeader1
-
public class FileHeader1 extends NewFileHeaderBase
-
-
Field Summary
Fields Modifier and Type Field Description static int
HEADER_LENGTH
-
Fields inherited from class com.db4o.internal.fileheader.NewFileHeaderBase
_timerFileLock, _variablePart, ACCESS_TIME_OFFSET, HEADER_LOCK_OFFSET, OPEN_TIME_OFFSET, SIGNATURE
-
Fields inherited from class com.db4o.internal.fileheader.FileHeader
TRANSACTION_POINTER_LENGTH
-
-
Constructor Summary
Constructors Constructor Description FileHeader1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NewFileHeaderBase
createNew()
FileHeaderVariablePart
createVariablePart(LocalObjectContainer file)
int
length()
protected void
read(LocalObjectContainer file, ByteArrayBuffer reader)
protected byte
version()
void
writeFixedPart(LocalObjectContainer file, boolean startFileLockingThread, boolean shuttingDown, StatefulBuffer writer, int blockSize)
void
writeTransactionPointer(Transaction systemTransaction, int transactionPointer)
-
Methods inherited from class com.db4o.internal.fileheader.NewFileHeaderBase
checkThreadFileLock, close, commit, completeInterruptedTransaction, initNew, newOnSignatureMatch, newTimerFileLock, oldEncryptionOff, readIdentity, writeVariablePart
-
Methods inherited from class com.db4o.internal.fileheader.FileHeader
convert, lockedByOtherSession, newCurrentFileHeader, read, signatureMatches, timeToWrite, writeTransactionPointer, writeVariablePart
-
-
-
-
Method Detail
-
length
public int length()
- Specified by:
length
in classFileHeader
-
read
protected void read(LocalObjectContainer file, ByteArrayBuffer reader)
- Specified by:
read
in classFileHeader
-
writeFixedPart
public void writeFixedPart(LocalObjectContainer file, boolean startFileLockingThread, boolean shuttingDown, StatefulBuffer writer, int blockSize)
- Specified by:
writeFixedPart
in classFileHeader
-
writeTransactionPointer
public void writeTransactionPointer(Transaction systemTransaction, int transactionPointer)
- Specified by:
writeTransactionPointer
in classFileHeader
-
createNew
protected NewFileHeaderBase createNew()
- Specified by:
createNew
in classNewFileHeaderBase
-
version
protected byte version()
- Specified by:
version
in classNewFileHeaderBase
-
createVariablePart
public FileHeaderVariablePart createVariablePart(LocalObjectContainer file)
- Specified by:
createVariablePart
in classNewFileHeaderBase
-
-