Top Description Fields Constructors Methods
org.jabref.logic.importer.util

public Class INSPIREBibtexFilterReader

extends FilterReader
Class Inheritance
Imports
java.io.BufferedReader, .FilterReader, .IOException, .Reader, java.util.regex.Pattern

Warning -- it is not a generic filter, only read is implemented!

Note

this is just a quick port of the original SPIRESBibtexFilterReader.

Todo

Fix grammar in bibtex entries -- it may return invalid bibkeys (with space)

Field Summary

Modifier and TypeField and Description
private final BufferedReader
private String
private static final Pattern
private int
private boolean
Inherited from java.io.FilterReader:
in

Constructor Summary

AccessConstructor and Description
public
INSPIREBibtexFilterReader(final Reader initialReader)

Method Summary

Modifier and TypeMethod and Description
private String
fixBibkey(final String preliminaryLine)

public int
read()

Overrides java.io.FilterReader.read.

Reads a single character.

private String
Inherited from java.io.FilterReader:
closemarkmarkSupportedreadreadyresetskip

Field Detail

inReaderback to summary
private final BufferedReader inReader
lineback to summary
private String line
PATTERNback to summary
private static final Pattern PATTERN
posback to summary
private int pos
preback to summary
private boolean pre

Constructor Detail

INSPIREBibtexFilterReaderback to summary
public INSPIREBibtexFilterReader(final Reader initialReader)

Method Detail

fixBibkeyback to summary
private String fixBibkey(final String preliminaryLine)
readback to summary
public int read() throws IOException

Overrides java.io.FilterReader.read.

Doc from java.io.FilterReader.read.

Reads a single character.

Returns:int

Doc from java.io.Reader.read.

The character read, as an integer in the range 0 to 65535 (0x00-0xffff), or -1 if the end of the stream has been reached

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
readpreLineback to summary
private String readpreLine() throws IOException