Package de.undercouch.citeproc.endnote
Class EndNoteConverter
- java.lang.Object
-
- de.undercouch.citeproc.endnote.EndNoteConverter
-
public class EndNoteConverter extends Object
Converts EndNote references to CSL citation items- Author:
- Michel Kraemer
-
-
Constructor Summary
Constructors Constructor Description EndNoteConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndNoteLibraryloadLibrary(InputStream is)Loads a EndNote library from a stream.Map<String,CSLItemData>toItemData(EndNoteLibrary lib)Converts the given library to a map of CSL citation itemsCSLItemDatatoItemData(EndNoteReference ref)Converts an EndNote reference to a citation itemCSLTypetoType(EndNoteType type)Converts a EndNote reference type to a CSL type
-
-
-
Method Detail
-
loadLibrary
public EndNoteLibrary loadLibrary(InputStream is) throws IOException, org.jbibtex.ParseException
Loads a EndNote library from a stream.
This method does not close the given stream. The caller is responsible for closing it.
- Parameters:
is- the input stream to read from- Returns:
- the EndNote library
- Throws:
IOException- if the library could not be readorg.jbibtex.ParseException- if the library is invalid
-
toItemData
public Map<String,CSLItemData> toItemData(EndNoteLibrary lib)
Converts the given library to a map of CSL citation items- Parameters:
lib- the library- Returns:
- a map consisting of citation keys and citation items
-
toItemData
public CSLItemData toItemData(EndNoteReference ref)
Converts an EndNote reference to a citation item- Parameters:
ref- the reference to convert- Returns:
- the citation item
-
toType
public CSLType toType(EndNoteType type)
Converts a EndNote reference type to a CSL type- Parameters:
type- the type to convert- Returns:
- the converted type (never null, falls back to
CSLType.ARTICLE)
-
-