public class EndNoteConverter extends Object
| Constructor and Description |
|---|
EndNoteConverter() |
| Modifier and Type | Method and Description |
|---|---|
EndNoteLibrary |
loadLibrary(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 items
|
CSLItemData |
toItemData(EndNoteReference ref)
Converts an EndNote reference to a citation item
|
CSLType |
toType(EndNoteType type)
Converts a EndNote reference type to a CSL type
|
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.
is - the input stream to read fromIOException - if the library could not be readorg.jbibtex.ParseException - if the library is invalidpublic Map<String,CSLItemData> toItemData(EndNoteLibrary lib)
lib - the librarypublic CSLItemData toItemData(EndNoteReference ref)
ref - the reference to convertpublic CSLType toType(EndNoteType type)
type - the type to convertCSLType.ARTICLE)