Verified Owner
Top Fields Constructors Methods
org.jabref.logic.importer.fetcher

public Class IacrEprintFetcher

extends Object
implements FulltextFetcher, IdBasedFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.IdBasedFetcher, org.jabref.logic.importer.WebFetcher, org.jabref.logic.importer.FulltextFetcher
Imports
java.io.IOException, java.net.MalformedURLException, .URL, java.util.Optional, java.util.function.Predicate, java.util.regex.Pattern, org.jabref.logic.importer.FetcherException, .FulltextFetcher, .IdBasedFetcher, .ImportFormatPreferences, .ParseException, org.jabref.logic.importer.fileformat.BibtexParser, org.jabref.logic.l10n.Localization, org.jabref.logic.net.URLDownload, org.jabref.logic.util.URLUtil, org.jabref.logic.util.strings.StringUtil, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.jspecify.annotations.NonNull, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private static final Predicate<String>
private static final Logger
public static final String
private final ImportFormatPreferences
private static final String
private static final Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Optional<BibEntry>
public Optional<URL>
private String
getAbstract(String descriptiveHtml)

private String
getDate(String descriptiveHtml)

private String
getHtml(URL url)

public String
getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of this fetcher.

private String
public TrustLevel
getTrustLevel()

Implements org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Returns the level of trust for this fetcher.

private String
getVersion(String identifier, String versionHtml)

private boolean
public Optional<BibEntry>
performSearchById(String identifier)

Implements org.jabref.logic.importer.IdBasedFetcher.performSearchById.

Looks for bibliographic information associated to the given identifier.

private void
setAdditionalFields(BibEntry entry, String identifier)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CITATION_URL_PREFIXback to summary
private static final String CITATION_URL_PREFIX
DESCRIPTION_URL_PREFIXback to summary
private static final String DESCRIPTION_URL_PREFIX
FULLTEXT_URL_PREFIXback to summary
private static final String FULLTEXT_URL_PREFIX
IDENTIFIER_PREDICATEback to summary
private static final Predicate<String> IDENTIFIER_PREDICATE
LOGGERback to summary
private static final Logger LOGGER
NAMEback to summary
public static final String NAME
prefsback to summary
private final ImportFormatPreferences prefs
VERSION_URL_PREFIXback to summary
private static final String VERSION_URL_PREFIX
WITHOUT_LETTERS_SPACEback to summary
private static final Pattern WITHOUT_LETTERS_SPACE

Constructor Detail

IacrEprintFetcherback to summary
public IacrEprintFetcher(ImportFormatPreferences prefs)

Method Detail

createEntryFromIacrCitationback to summary
private Optional<BibEntry> createEntryFromIacrCitation(String validIdentifier) throws FetcherException
findFullTextback to summary
public Optional<URL> findFullText(@NonNull BibEntry entry) throws IOException, FetcherException
Annotations
@Override
getAbstractback to summary
private String getAbstract(String descriptiveHtml) throws FetcherException
getDateback to summary
private String getDate(String descriptiveHtml) throws FetcherException
getHtmlback to summary
private String getHtml(URL url) throws FetcherException
getNameback to summary
public String getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Doc from org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of this fetcher. The title can be used to display the fetcher in the menu and in the side pane.

Todo

This name is also used for identifying the fetcher in preferences for API keys. Thus, any switch of the language will "remove" API keys.

Annotations
@Override
getRequiredValueBetweenback to summary
private String getRequiredValueBetween(String from, String to, String haystack) throws FetcherException
getTrustLevelback to summary
public TrustLevel getTrustLevel()

Implements org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Doc from org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Returns the level of trust for this fetcher. We distinguish between publishers and meta search engines for example.

Annotations
@Override
getVersionback to summary
private String getVersion(String identifier, String versionHtml) throws FetcherException
isFromOrAfterYear2000back to summary
private boolean isFromOrAfterYear2000(BibEntry entry) throws FetcherException
performSearchByIdback to summary
public Optional<BibEntry> performSearchById(String identifier) throws FetcherException

Implements org.jabref.logic.importer.IdBasedFetcher.performSearchById.

Doc from org.jabref.logic.importer.IdBasedFetcher.performSearchById.

Looks for bibliographic information associated to the given identifier.

Annotations
@Override
setAdditionalFieldsback to summary
private void setAdditionalFields(BibEntry entry, String identifier) throws FetcherException