public class IndexLoader extends Object
Modifier and Type | Method and Description |
---|---|
Index |
loadIndex(ReaderAtEnd reader)
Load and validate the index.
|
static IndexLoader |
newIndexLoader(int blockSize)
Create a new
IndexLoader for the specified block size. |
public static IndexLoader newIndexLoader(int blockSize)
IndexLoader
for the specified block size. The block
size is used to validate different data items in the index.blockSize
- The block size. It must be strictly positive.IndexLoader
.public Index loadIndex(ReaderAtEnd reader) throws IOException, InvalidIndexException
ReaderAtEnd
which is positioned at the end of the index in the TAR file.reader
- an instance of ReaderAtEnd
.Index
.IOException
- If an I/O error occurs while reading the
index.InvalidIndexException
- If a validation error occurs while checking
the index.Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.