Class BinaryReferencesIndexLoader
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.tar.binaries.BinaryReferencesIndexLoader
-
public class BinaryReferencesIndexLoader extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Buffer
loadBinaryReferencesIndex(ReaderAtEnd reader)
Load and validate a binary references index.static BinaryReferencesIndex
parseBinaryReferencesIndex(Buffer buffer)
-
-
-
Method Detail
-
loadBinaryReferencesIndex
public static Buffer loadBinaryReferencesIndex(ReaderAtEnd reader) throws java.io.IOException, InvalidBinaryReferencesIndexException
Load and validate a binary references index. The binary references index is read backward. The medium the index is read from is represented by an instance ofReaderAtEnd
. TheReaderAtEnd
should behave as it is positioned at the end of the binary references index.- Parameters:
reader
- An instance ofReaderAtEnd
.- Returns:
- The binary references index.
- Throws:
java.io.IOException
- if an error occurs while reading the index.InvalidBinaryReferencesIndexException
- if the index is invalid or malformed.
-
parseBinaryReferencesIndex
public static BinaryReferencesIndex parseBinaryReferencesIndex(Buffer buffer) throws InvalidBinaryReferencesIndexException
-
-