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

public Class ReferencesBlockFromPdfFinder

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.regex.Matcher, .Pattern, org.jabref.logic.util.PdfUtils, org.apache.pdfbox.pdmodel.PDDocument, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
public static String
getReferencesPagesText(PDDocument document)

Extracts the text from all pages containing references.

private static String
prependToResult(String currentText, PDDocument document, int pageNumber)

This simply goes from the given page backwards until there is probably no reference anymore.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
REFERENCESback to summary
private static final Pattern REFERENCES

Constructor Detail

ReferencesBlockFromPdfFinderback to summary
public ReferencesBlockFromPdfFinder()

Method Detail

containsWordReferencesback to summary
private static boolean containsWordReferences(String result)
getReferencesPagesTextback to summary
public static String getReferencesPagesText(PDDocument document) throws IOException

Extracts the text from all pages containing references. It simply goes from the last page backwards until there is probably no reference anymore.

prependToResultback to summary
private static String prependToResult(String currentText, PDDocument document, int pageNumber) throws IOException

This simply goes from the given page backwards until there is probably no reference anymore.