Package com.db4o.internal.fileheader
Class FileHeader2
- java.lang.Object
-
- com.db4o.internal.fileheader.FileHeader
-
- com.db4o.internal.fileheader.NewFileHeaderBase
-
- com.db4o.internal.fileheader.FileHeader2
-
- Direct Known Subclasses:
FileHeader3
public class FileHeader2 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 FileHeader2()
-
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 container, 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 container, 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
-
version
protected byte version()
- Specified by:
version
in classNewFileHeaderBase
-
createNew
protected NewFileHeaderBase createNew()
- Specified by:
createNew
in classNewFileHeaderBase
-
createVariablePart
public FileHeaderVariablePart createVariablePart(LocalObjectContainer file)
- Specified by:
createVariablePart
in classNewFileHeaderBase
-
-