public SplitFileFetcherStorage createStorage(StorageCallback cb) throws FetchException, MetadataParseException, IOException {
return createStorage(cb, makeFetchContext());
}
public SplitFileFetcherStorage createStorage(final StorageCallback cb, FetchContext ctx) throws FetchException, MetadataParseException, IOException {
LockableRandomAccessBufferFactory f = new LockableRandomAccessBufferFactory() {
@Override
public LockableRandomAccessBuffer makeRAF(long size) throws IOException {
LockableRandomAccessBuffer t = rafFactory.makeRAF(size);
cb.snoopRAF(t);