@@ -0,0 +1,2572 @@
+%0Apackage org.jabref.logic.importer.fileformat;%0A%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.nio.charset.Charset;%0Aimport java.nio.file.Path;%0Aimport java.util.Objects;%0A%0Aimport org.jabref.logic.importer.ParserResult;%0Aimport org.jabref.logic.l10n.Localization;%0Aimport org.jabref.logic.util.FileExtensions;%0Aimport org.jabref.logic.xmp.XMPPreferences;%0Aimport org.jabref.logic.xmp.XMPUtil;%0A%0A%0A%0Apublic class CSVXmpImporter %7B%0A%0A%09 private final XMPPreferences xmpPreferences;%0A%0A%0A%09    public CSVXmpImporter(XMPPreferences xmpPreferences) %7B%0A%09        this.xmpPreferences = xmpPreferences;%0A%09    %7D%0A%0A%09   // @Override%0A%09    public String getName() %7B%0A%09        return Localization.lang(%22XMP-annotated CVS%22);%0A%09    %7D%0A%0A%09 //   @Override%0A%09    public FileExtensions getExtensions() %7B%0A%09        return FileExtensions.XMP;%0A%09    %7D%0A%0A%09   // @Override%0A%09    public ParserResult importDatabase(BufferedReader reader) throws IOException %7B%0A%09        Objects.requireNonNull(reader);%0A%09        throw new UnsupportedOperationException(%0A%09                %22CVSXmpImporter does not support importDatabase(BufferedReader reader).%22%0A%09                        + %22Instead use importDatabase(Path filePath, Charset defaultEncoding).%22);%0A%09    %7D%0A%0A%09 //   @Override%0A%09    public ParserResult importDatabase(Path filePath, Charset defaultEncoding) %7B%0A%09        Objects.requireNonNull(filePath);%0A%09        try %7B%0A%09            return new ParserResult(XMPUtil.readXMP(filePath, xmpPreferences));%0A%09        %7D catch (IOException exception) %7B%0A%09            return ParserResult.fromError(exception);%0A%09        %7D%0A%09    %7D%0A%0A%09  //  @Override%0A%09    public boolean isRecognizedFormat(BufferedReader reader) throws IOException %7B%0A%09        Objects.requireNonNull(reader);%0A%09        throw new UnsupportedOperationException(%0A%09                %22CVSXmpImporter does not support isRecognizedFormat(BufferedReader reader).%22%0A%09                        + %22Instead use isRecognizedFormat(Path filePath, Charset defaultEncoding).%22);%0A%09    %7D%0A%0A%09    /**%0A%09     * Returns whether the given stream contains data that is a.) a CVS and b.)%0A%09     * contains at least one BibEntry.%0A%09     */%0A%09  //  @Override%0A%09    public boolean isRecognizedFormat(Path filePath, Charset defaultEncoding) throws IOException %7B%0A%09        Objects.requireNonNull(filePath);%0A%09        return XMPUtil.hasMetadata(filePath, xmpPreferences);%0A%09    %7D%0A%0A%09 //   @Override%0A%09    public String getId() %7B%0A%09        return %22xmp%22;%0A%09    %7D%0A%0A%09  //  @Override%0A%09    public String getDescription() %7B%0A%09        return %22Wraps the XMPUtility function to be used as an Importer.%22;%0A%09    %7D%0A%0A%7D // fim da classe%0A

Create CSVXmpImporter.java