| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final DocumentBuilderFactory | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDescription()
Implements abstract org. Returns the description of the import format. |
| public StandardFileType | getFileType()
Implements abstract org. Returns the type of files that this importer can read |
| public String | getName()
Implements abstract org. Returns the name of this import format. |
| public ParserResult | importDatabase(BufferedReader
the input to read from reader)Implements abstract org. Parse the database in the source. |
| public boolean | isRecognizedFormat(BufferedReader reader)
Implements abstract org. The correct behavior is to return false if it is certain that the file is not of the MsBib type, and true otherwise. |
| private static DocumentBuilderFactory | Returns: If supported, XXE safe DocumentBuilderFactory. Else, returns original builder given| DocumentBuilderFactory to be made XXE safe. dBuild)DocumentBuilderFactory makes a XXE safe Builder factory from dBuild. |
| DISABLEDTD | back to summary |
|---|---|
| private static final String DISABLEDTD | |
| DISABLEEXTERNALDTD | back to summary |
|---|---|
| private static final String DISABLEEXTERNALDTD | |
| DOCUMENT_BUILDER_FACTORY | back to summary |
|---|---|
| private static final DocumentBuilderFactory DOCUMENT_BUILDER_FACTORY | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| MsBibImporter | back to summary |
|---|---|
| public MsBibImporter() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns the description of the import format. The description should specify
| |
| getFileType | back to summary |
|---|---|
| public StandardFileType getFileType() Implements abstract org. Doc from org. Returns the type of files that this importer can read
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of this import format. The name must be unique. | |
| importDatabase | back to summary |
|---|---|
| public ParserResult importDatabase(BufferedReader reader) 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. This method should never return null.
| |
| isRecognizedFormat | back to summary |
|---|---|
| public boolean isRecognizedFormat(BufferedReader reader) throws IOException Implements abstract org. The correct behavior is to return false if it is certain that the file is not of the MsBib type, and true otherwise. Returning true is the safe choice if not certain.
| |
| makeSafeDocBuilderFactory | back to summary |
|---|---|
| private static DocumentBuilderFactory makeSafeDocBuilderFactory(DocumentBuilderFactory dBuild) DocumentBuilderFactory makes a XXE safe Builder factory from dBuild. If not supported by current XML then returns original builder given and logs error.
| |