@@ -0,0 +1,1921 @@
+/*%0A * LensKit, an open source recommender systems toolkit.%0A * Copyright 2010-2014 LensKit Contributors.  See CONTRIBUTORS.md.%0A * Work on LensKit has been funded by the National Science Foundation under%0A * grants IIS 05-34939, 08-08692, 08-12148, and 10-17697.%0A *%0A * This program is free software; you can redistribute it and/or modify%0A * it under the terms of the GNU Lesser General Public License as%0A * published by the Free Software Foundation; either version 2.1 of the%0A * License, or (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more%0A * details.%0A *%0A * You should have received a copy of the GNU General Public License along with%0A * this program; if not, write to the Free Software Foundation, Inc., 51%0A * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.%0A */%0Apackage org.grouplens.lenskit.data.text;%0A%0Aimport org.grouplens.lenskit.data.dao.DataAccessException;%0Aimport org.grouplens.lenskit.data.dao.ItemFile;%0Aimport org.grouplens.lenskit.data.dao.MapItemNameDAO;%0A%0Aimport javax.inject.Inject;%0Aimport javax.inject.Provider;%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0A/**%0A * Provider for %7B@link org.grouplens.lenskit.data.dao.ItemListItemDAO%7D that reads a list of item IDs from a file, one per line.%0A *%0A * @since 2.1%0A */%0Apublic class CSVFileItemNameDAOProvider implements Provider%3CMapItemNameDAO%3E %7B%0A    private final File itemFile;%0A%0A    @Inject%0A    public CSVFileItemNameDAOProvider(@ItemFile File file) %7B%0A        itemFile = file;%0A    %7D%0A%0A    @Override%0A    public MapItemNameDAO get() %7B%0A        try %7B%0A            return MapItemNameDAO.fromCSVFile(itemFile);%0A        %7D catch (IOException e) %7B%0A            throw new DataAccessException(%22error reading %22 + itemFile, e);%0A        %7D%0A    %7D%0A%7D%0A

Add provider for map-based item name DAO.