Is also responsible for instantiating the class loader.
| Modifier and Type | Field and Description |
|---|---|
| private final Path | |
| private final String | |
| private final Importer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object other)
Overrides org. Indicates whether some other object is "equal to" this one. |
| public List | |
| public Path | |
| public String | |
| public String | getDescription()
Implements abstract org. Returns the description of the import format. |
| public FileType | getFileType()
Implements abstract org. Returns the type of files that this importer can read |
| public String | getId()
Implements abstract org. Returns a slug, which identifies this importer. |
| public String | getName()
Implements abstract org. Returns the name of this import format. |
| public int | hashCode()
Overrides org. Returns a hash code value for this object. |
| public ParserResult | importDatabase(@NonNull BufferedReader input)
Implements abstract org. Parse the database in the source. |
| public boolean | isRecognizedFormat(@NonNull BufferedReader input)
Overrides org. Check whether the source is in the correct format for this importer. |
| private static Importer | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| basePath | back to summary |
|---|---|
| private final Path basePath | |
| className | back to summary |
|---|---|
| private final String className | |
| importer | back to summary |
|---|---|
| private final Importer importer | |
| CustomImporter | back to summary |
|---|---|
| public CustomImporter(String basePath, String className) throws ImportException | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAsStringList | back to summary |
|---|---|
| public List | |
| getBasePath | back to summary |
|---|---|
| public Path getBasePath() | |
| getClassName | back to summary |
|---|---|
| public String getClassName() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns the description of the import format. The description should specifywhat kind of entries from what sources and based on what specification it is able to importby what criteria it
| |
| getFileType | back to summary |
|---|---|
| public FileType getFileType() Implements abstract org. Doc from org. Returns the type of files that this importer can read
| |
| getId | back to summary |
|---|---|
| public String getId() Implements abstract org. Doc from org. Returns a slug, which identifies this importer. Used, for example, to identify the importer in CLI. Typically, this name should be short, in English, and should not contain special characters like #, %, etc.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of this import format. Typically, this is a string that denotes file type or format. It can also be localized, like "XMP-annotated PDF".
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| importDatabase | back to summary |
|---|---|
| public ParserResult importDatabase(@NonNull BufferedReader input) throws IOException Implements abstract org. Doc from org. Parse the database in the source. This method can be called in two different contexts - either when importing in a specified format, or when importing in unknown format. In the latter case, JabRef cycles through all available import formats. No error messages or feedback is displayed from individual import formats in this case. If importing in a specified format and an empty library is returned, JabRef reports that no entries were found. If your format is binary-based (PDF, ZIP-based, or others), then you should not solely override this method. For binary formats do this:
| |
| isRecognizedFormat | back to summary |
|---|---|
| public boolean isRecognizedFormat(@NonNull BufferedReader input) throws IOException Overrides org. Doc from org. Check whether the source is in the correct format for this importer. All implementations need to reset the input stream to the beginning again - to enable importing at subsequent calls. The effect of this method is primarily to avoid unnecessary processing of files when searching for a suitable import format. If this method returns false, the import routine will move on to the next import format. Thus, the correct behavior is to return false if it is certain that the file is not of the suitable type, and true otherwise. Returning true is the safe choice if not certain.
| |
| load | back to summary |
|---|---|
| private static Importer load(URL basePathURL, String className) throws IOException, ReflectiveOperationException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |