Verified Owner
Top Fields Constructors Methods
org.jabref.logic.msc

public final Class MscCodeLoader

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.io.BufferedReader, .IOException, .InputStreamReader, .Reader, java.net.URL, java.nio.charset.StandardCharsets, java.nio.file.Files, .Path, .StandardCopyOption, java.util.List, java.util.stream.StreamSupport, org.jabref.logic.importer.FetcherException, org.jabref.logic.net.URLDownload, org.jabref.logic.util.strings.StringUtil, org.apache.commons.csv.CSVFormat, .CSVParser, org.h2.mvstore.MVMap, .MVStore, org.jspecify.annotations.NullMarked, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final String
private static final CSVFormat
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
convertCsvToMvStore(Path csvFile, Path mvStoreFile)

public static void
downloadAndConvert(URL csvUrl, Path mvStoreFile)

private static void
public static boolean
private static List<MscCodeEntry>
public static List<MscCodeEntry>
private static void
storeInMvStore(List<MscCodeEntry> entries, Path mvStoreFile)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
MSC_CODES_MAP_NAMEback to summary
private static final String MSC_CODES_MAP_NAME
MSC_CSV_FORMATback to summary
private static final CSVFormat MSC_CSV_FORMAT
MSC_CSV_URLback to summary
public static final String MSC_CSV_URL
MSC_FILE_NAMEback to summary
public static final String MSC_FILE_NAME

Constructor Detail

MscCodeLoaderback to summary
private MscCodeLoader()

Method Detail

convertCsvToMvStoreback to summary
public static void convertCsvToMvStore(Path csvFile, Path mvStoreFile) throws IOException
downloadAndConvertback to summary
public static void downloadAndConvert(URL csvUrl, Path mvStoreFile) throws IOException
ensureParentDirectoryExistsback to summary
private static void ensureParentDirectoryExists(Path file) throws IOException
isMvStoreAvailableWithDataback to summary
public static boolean isMvStoreAvailableWithData(Path mvStoreFile)
readMscCodesback to summary
private static List<MscCodeEntry> readMscCodes(Reader reader) throws IOException
readMscCodesFromCsvUrlback to summary
public static List<MscCodeEntry> readMscCodesFromCsvUrl(URL resourceUrl) throws IOException
storeInMvStoreback to summary
private static void storeInMvStore(List<MscCodeEntry> entries, Path mvStoreFile)