Top Description Fields Methods
org.jabref.logic.importer

public Interface IdBasedParserFetcher

extends IdBasedFetcher, ParserFetcher
Known Direct Implementers
org.jabref.logic.importer.fetcher.JstorFetcher, org.jabref.logic.importer.fetcher.AbstractIsbnFetcher, org.jabref.logic.importer.fetcher.AstrophysicsDataSystem, org.jabref.logic.importer.fetcher.CrossRef, org.jabref.logic.importer.fetcher.DiVA, org.jabref.logic.importer.fetcher.LibraryOfCongress, org.jabref.logic.importer.fetcher.MathSciNet, org.jabref.logic.importer.fetcher.MedlineFetcher, org.jabref.logic.importer.fetcher.Medra, org.jabref.logic.importer.fetcher.RfcFetcher, org.jabref.logic.importer.fetcher.ZbMATH
Imports
java.io.IOException, .InputStream, java.net.MalformedURLException, .URISyntaxException, .URL, java.util.List, .Optional, org.jabref.model.entry.BibEntry, org.jabref.model.strings.StringUtil, org.slf4j.Logger, .LoggerFactory

Provides a convenient interface for ID-based fetcher, which follow the usual three-step procedure: 1. Open a URL based on the search query 2. Parse the response to get a list of BibEntry 3. Post-process fetched entries

Field Summary

Modifier and TypeField and Description
public static final Logger

Method Summary

Modifier and TypeMethod and Description
public Parser
getParser()

Returns the parser used to convert the response to a list of BibEntry.

public URL
getUrlForIdentifier(String
the ID
identifier
)

Constructs a URL based on the query.

public default Optional<BibEntry>
performSearchById(String
a string which uniquely identifies the item
identifier
)

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

Looks for bibliographic information associated to the given identifier.

Inherited from org.jabref.logic.importer.ParserFetcher:
doPostCleanup

Field Detail

LOGGERback to summary
public static final Logger LOGGER

Method Detail

getParserback to summary
public Parser getParser()

Returns the parser used to convert the response to a list of BibEntry.

getUrlForIdentifierback to summary
public URL getUrlForIdentifier(String identifier) throws URISyntaxException, MalformedURLException, FetcherException

Constructs a URL based on the query.

Parameters
identifier:String

the ID

performSearchByIdback to summary
public default 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.

Parameters
identifier:String

a string which uniquely identifies the item

Returns:Optional<BibEntry>

a BibEntry containing the bibliographic information (or an empty optional if no data was found)

Annotations
@Override