start = offset;
if (codec !=null)
{
start = 0;
inputStream = new CountingInputStream(_input);
internalInputStream = codec.createInputStream(inputStream);
}
else
{
if (start != 0) //TODO: start is always zero?
{
--start;
_input.seek(start);
}
internalInputStream = inputStream = new CountingInputStream(_input, start);
}
Collection rtr = CollectionFactory.loadCollection(
ApplicationSetup.getProperty("trec.collection.class", "TRECCollection"),
new Class[]{InputStream.class},
new Object[]{internalInputStream});