made it possible to deserialize tar index from inputstream