Top Description Fields Constructors Methods
org.jabref.logic.protectedterms

public Class ProtectedTermsParser

extends Object
Class Inheritance
Imports
java.io.IOException, java.net.URISyntaxException, java.nio.charset.StandardCharsets, java.nio.file.Files, .Path, java.util.ArrayList, .List, .Objects, java.util.stream.Collectors, .Stream, org.jabref.logic.l10n.Localization, org.slf4j.Logger, .LoggerFactory

Reads abbreviation files (property files using NAME = ABBREVIATION as a format) into a list of Abbreviations.

Field Summary

Modifier and TypeField and Description
private String
private String
private static final Logger
private final List<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ProtectedTermsList
getProtectTermsList(boolean enabled, boolean internal)

public void
public void
readTermsFromResource(String resourceFileName, String descriptionString)

private void
private String

Returns:

line or null if the line contains the description
setDescription
(String line)

Parse the description that starts after the # but don't include it in the terms

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionback to summary
private String description
locationback to summary
private String location
LOGGERback to summary
private static final Logger LOGGER
termsback to summary
private final List<String> terms

Constructor Detail

ProtectedTermsParserback to summary
public ProtectedTermsParser()

Method Detail

getProtectTermsListback to summary
public ProtectedTermsList getProtectTermsList(boolean enabled, boolean internal)
readTermsFromFileback to summary
public void readTermsFromFile(Path path)
readTermsFromResourceback to summary
public void readTermsFromResource(String resourceFileName, String descriptionString)
readTermsListback to summary
private void readTermsList(Path path)
setDescriptionback to summary
private String setDescription(String line)

Parse the description that starts after the # but don't include it in the terms

Returns:String

line or null if the line contains the description