| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Importer
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| protected static Charset | |
| public abstract String | Returns: description of the import formatReturns the description of the import format. |
| public abstract FileType | Returns: FileType corresponding to the importerReturns the type of files that this importer can read |
| public String | Returns: ID, must be unique and notnullReturns a one-word ID which identifies this importer. |
| public abstract String | |
| public static BufferedReader | |
| public static BufferedReader | |
| public int | |
| public abstract ParserResult | |
| public ParserResult | importDatabase(Path
the path to the file which should be imported filePath)Parse the database in the specified file. |
| public ParserResult | Returns: the parsed resultthe string which should be imported data)Parse the database in the specified string. |
| public abstract boolean | isRecognizedFormat(BufferedReader input)
Check whether the source is in the correct format for this importer. |
| public boolean | Returns: true, if the file is in a recognized formatthe path of the file to check filePath)Check whether the source is in the correct format for this importer. |
| public boolean | Returns: true, if the data is in a recognized formatthe data to check data)Check whether the source is in the correct format for this importer. |
| public String |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| Importer | back to summary |
|---|---|
| public Importer() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Importer o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. 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. | |
| getCharset | back to summary |
|---|---|
| protected static Charset getCharset(BufferedInputStream bufferedInputStream) | |
| getDescription | back to summary |
|---|---|
| public abstract String getDescription() Returns the description of the import format. The description should specify
| |
| getFileType | back to summary |
|---|---|
| public abstract FileType getFileType() Returns the type of files that this importer can read | |
| getId | back to summary |
|---|---|
| public String getId() Returns a one-word ID which identifies this importer. Used for example, to identify the importer when used from the command line.
| |
| getName | back to summary |
|---|---|
| public abstract String getName() Returns the name of this import format. The name must be unique.
| |
| getReader | back to summary |
|---|---|
| public static BufferedReader getReader(Path filePath) throws IOException | |
| getReader | back to summary |
|---|---|
| public static BufferedReader getReader(InputStream stream) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. 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 abstract ParserResult importDatabase(BufferedReader input) throws IOException 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. This method should never return null.
| |
| importDatabase | back to summary |
|---|---|
| public ParserResult importDatabase(Path filePath) throws IOException Parse the database in the specified file.
| |
| importDatabase | back to summary |
|---|---|
| public ParserResult importDatabase(String data) throws IOException Parse the database in the specified string.
Importer having the facilities to detect the correct encoding of a string should overwrite this method, determine
the encoding and then call
| |
| isRecognizedFormat | back to summary |
|---|---|
| public abstract boolean isRecognizedFormat(BufferedReader input) throws IOException Check whether the source is in the correct format for this importer. 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 behaviour 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. | |
| isRecognizedFormat | back to summary |
|---|---|
| public boolean isRecognizedFormat(Path filePath) throws IOException Check whether the source is in the correct format for this importer.
| |
| isRecognizedFormat | back to summary |
|---|---|
| public boolean isRecognizedFormat(String data) throws IOException Check whether the source is in the correct format for this importer.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |