positions[i++] = pos;
}
indexedDocument.put(key, positions);
}
intDocVector = new LazyIntDocVector(indexedDocument);
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
DataOutputStream dataOut = new DataOutputStream(byteOut);
intDocVector.write(dataOut);
dataOut.close();
ByteArrayInputStream byteIn = new ByteArrayInputStream(byteOut.toByteArray());
DataInputStream dataIn = new DataInputStream(byteIn);
intDocVector = new LazyIntDocVector();
intDocVector.readFields(dataIn);
}