Verified Owner
Top Description Constructors Methods
org.jabref.gui.fieldeditors

public Class URLUtil

extends Object
Class Inheritance
Imports
java.net.MalformedURLException, .URL, java.util.Optional, org.jabref.gui.externalfiletype.ExternalFileTypes, org.jabref.gui.frame.ExternalApplicationsPreferences

URL utilities for URLs in the JabRef GUI.

For logic-oriented URL utilities see org.jabref.logic.util.URLUtil.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Optional<String>

Returns:

The suffix, excluding the dot (e.g. "pdf")
getSuffix
(final String
The link
link
,
ExternalApplicationsPreferences externalApplicationsPreferences)

Look for the last '.' in the link, and return the following characters.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

URLUtilback to summary
private URLUtil()

Method Detail

getSuffixback to summary
public static Optional<String> getSuffix(final String link, ExternalApplicationsPreferences externalApplicationsPreferences)

Look for the last '.' in the link, and return the following characters.

This gives the extension for most reasonably named links.

Parameters
link:String

The link

Returns:Optional<String>

The suffix, excluding the dot (e.g. "pdf")