Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| scrutaridata:exportapi:java [2010/02/11 18:37] – vincent | scrutaridata:exportapi:java [2016/09/22 14:06] (Version actuelle) – vincent | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Implémentation de l'API en JAVA ====== | ====== Implémentation de l'API en JAVA ====== | ||
| - | L' | + | L' |
| * Fichier JAR : [[http:// | * Fichier JAR : [[http:// | ||
| - | * Sources : [[http:// | + | * Sources : [[http:// |
| * JavaDoc : [[http:// | * JavaDoc : [[http:// | ||
| + | |||
| + | |||
| + | Les sources sont accessibles avec Git via https:// | ||
| + | |||
| + | Un autre accès avec Subversion : | ||
| + | |||
| + | svn co http:// | ||
| ===== Utilisation de l' | ===== Utilisation de l' | ||
| Ligne 37: | Ligne 44: | ||
| public static void main(String[] args) throws IOException { | public static void main(String[] args) throws IOException { | ||
| /* Ouverture d'un fichier en écriture */ | /* Ouverture d'un fichier en écriture */ | ||
| - | File file = new File("/home/vic/test.scrutari-data.xml" | + | File file = new File(" |
| BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), | BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), | ||
| Ligne 47: | Ligne 54: | ||
| / | / | ||
| - | baseMetadataExport.setAuthorityUUID(" | + | baseMetadataExport.setAuthority(" |
| baseMetadataExport.setBaseName(" | baseMetadataExport.setBaseName(" | ||
| baseMetadataExport.setBaseIcon(" | baseMetadataExport.setBaseIcon(" | ||
| Ligne 92: | Ligne 99: | ||
| /* Exemple d' | /* Exemple d' | ||
| - | même s'il ne s'agit du mot-clé ou de la fiche en cours ou que le thésaurus ou le corpus | + | * même s'il ne s'agit du mot-clé ou de la fiche en cours ou que le thésaurus ou le corpus |
| - | * n'ont pas encore été définis. | + | * n'ont pas encore été définis. */ |
| - | */ | + | |
| scrutariDataExport.addIndexation(" | scrutariDataExport.addIndexation(" | ||
| Ligne 107: | Ligne 113: | ||
| MotcleExport motcleExport = scrutariDataExport.newMotcle(" | MotcleExport motcleExport = scrutariDataExport.newMotcle(" | ||
| motcleExport.setLibelle(" | motcleExport.setLibelle(" | ||
| + | |||
| + | /* Autre exemple d' | ||
| + | scrutariDataExport.addIndexation(" | ||
| + | |||
| + | /* L' | ||
| + | * toujours sur le premier mot-clé */ | ||
| motcleExport.setLibelle(" | motcleExport.setLibelle(" | ||
| Ligne 117: | Ligne 129: | ||
| } | } | ||
| - | |||
| </ | </ | ||
