comparison flys-client/src/main/java/de/intevation/flys/client/server/CSVExportServiceImpl.java @ 550:605debcbb6a0

Adjusted the return values of the CSVExportService, so that GWT can handle those values better. flys-client/trunk@2063 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 07 Jun 2011 12:51:57 +0000
parents f56523bf4c55
children ab8eb2f544f2
comparison
equal deleted inserted replaced
549:e74bf6bfeeb6 550:605debcbb6a0
32 implements CSVExportService 32 implements CSVExportService
33 { 33 {
34 public static final String ERROR_NO_EXPORT_FOUND = 34 public static final String ERROR_NO_EXPORT_FOUND =
35 "error_no_export_found"; 35 "error_no_export_found";
36 36
37 public List getCSV( 37 public List<String[]> getCSV(
38 String url, 38 String url,
39 String locale, 39 String locale,
40 String uuid, 40 String uuid,
41 String name) 41 String name)
42 throws ServerException 42 throws ServerException
60 try { 60 try {
61 InputStream in = client.collectionOut(requestDoc, uuid, "export"); 61 InputStream in = client.collectionOut(requestDoc, uuid, "export");
62 Reader reader = new InputStreamReader (in, "UTF-8"); 62 Reader reader = new InputStreamReader (in, "UTF-8");
63 CSVReader csvReader = new CSVReader (reader); 63 CSVReader csvReader = new CSVReader (reader);
64 64
65 return csvReader.readAll (); 65 return (List<String[]>) csvReader.readAll ();
66 } 66 }
67 catch (IOException ce) { 67 catch (IOException ce) {
68 System.err.println(ce.getLocalizedMessage()); 68 System.err.println(ce.getLocalizedMessage());
69 } 69 }
70 70

http://dive4elements.wald.intevation.org