91,11 → 91,34 |
String valeur = image.get(key).isString().stringValue() ; |
this.put(key, valeur) ; |
} |
else |
{ |
String valeur = " " ; |
this.put(key, valeur) ; |
} |
|
} |
|
} |
|
public String toString() |
{ |
String valeur = " "; |
|
for (Iterator iterator = this.keySet().iterator(); iterator.hasNext();) { |
|
|
String key = (String) iterator.next(); |
if(this.get(key) != null) |
{ |
valeur += "cle : "+key+" valeur :"+(String)this.get(key)+"\n" ; |
} |
|
} |
|
return valeur ; |
} |
|
public String renvoyerValeurCorrecte(String cle) |
{ |
if(this.containsKey((cle))) |
124,7 → 147,7 |
|
public String getBaseUrl() |
{ |
return "http://localhost/Documents/images_serveur/" ; |
return "http://162.38.234.9/Documents/images_serveur/" ; |
} |
|
public String getUrl() { |
166,4 → 189,71 |
|
return renvoyerValeurCorrecte("ci_meta_model") ; |
} |
|
public String[][] getMetadonnesIptc() { |
|
String[][] metaIptc = new String[12][2] ; |
int elem = 0 ; |
|
for (Iterator it = this.keySet().iterator(); it.hasNext();) |
{ |
|
String key = (String)it.next(); |
|
// on filtre le "ci" |
String type[] = key.split("_",3) ; |
|
|
// si c'est une metadonnee exif ou iptc |
if(type[1].equals("meta")) |
{ |
String[] genre = type[2].split("_",2) ; |
if(genre[0].equals("iptc")) |
{ |
String nom = genre[1] ; |
metaIptc[elem][0] = nom ; |
metaIptc[elem][1] = renvoyerValeurCorrecte(key) ; |
elem++ ; |
} |
|
} |
|
} |
|
return metaIptc ; |
} |
|
public Object[][] getMetadonnesExif() { |
|
String[][] metaExif = new String[31][2] ; |
int elem = 0 ; |
|
for (Iterator it = this.keySet().iterator(); it.hasNext();) |
{ |
|
String key = (String)it.next(); |
|
// on filtre le "ci" |
String type[] = key.split("_",3) ; |
|
|
// si c'est une metadonnee exif ou iptc |
if(type[1].equals("meta")) |
{ |
String[] genre = type[2].split("_",2) ; |
if(genre[0].equals("exif")) |
{ |
String nom = genre[1] ; |
metaExif[elem][0] = nom ; |
metaExif[elem][1] = renvoyerValeurCorrecte(key) ; |
elem++ ; |
} |
|
} |
|
} |
|
return metaExif ; |
|
} |
} |