public class BinaryReferencesIndexLoader extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.jackrabbit.oak.commons.Buffer |
loadBinaryReferencesIndex(ReaderAtEnd reader)
Load and validate a binary references index.
|
static BinaryReferencesIndex |
parseBinaryReferencesIndex(org.apache.jackrabbit.oak.commons.Buffer buffer) |
public static org.apache.jackrabbit.oak.commons.Buffer loadBinaryReferencesIndex(ReaderAtEnd reader) throws IOException, InvalidBinaryReferencesIndexException
ReaderAtEnd
. The ReaderAtEnd
should behave as
it is positioned at the end of the binary references index.reader
- An instance of ReaderAtEnd
.IOException
- if an error occurs while
reading the index.InvalidBinaryReferencesIndexException
- if the index is invalid or
malformed.public static BinaryReferencesIndex parseBinaryReferencesIndex(org.apache.jackrabbit.oak.commons.Buffer buffer) throws InvalidBinaryReferencesIndexException
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.