Class BinaryReferencesIndexLoader
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.tar.binaries.BinaryReferencesIndexLoader
-
public class BinaryReferencesIndexLoader extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferloadBinaryReferencesIndex(ReaderAtEnd reader)Load and validate a binary references index.static BinaryReferencesIndexparseBinaryReferencesIndex(Buffer buffer)
-
-
-
Method Detail
-
loadBinaryReferencesIndex
public static Buffer loadBinaryReferencesIndex(ReaderAtEnd reader) throws 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. TheReaderAtEndshould behave as it is positioned at the end of the binary references index.- Parameters:
reader- An instance ofReaderAtEnd.- Returns:
- The binary references index.
- Throws:
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
-
-