Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java @ 27:75bdaf900473
Added REST handler for 'describe'.
artifacts/trunk@64 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 10 Sep 2009 14:21:58 +0000 |
parents | 83a059c204f8 |
children | 88972c6daa4f |
comparison
equal
deleted
inserted
replaced
26:83a059c204f8 | 27:75bdaf900473 |
---|---|
137 GZIPOutputStream gos = new GZIPOutputStream(bos); | 137 GZIPOutputStream gos = new GZIPOutputStream(bos); |
138 ObjectOutputStream oos = new ObjectOutputStream(gos); | 138 ObjectOutputStream oos = new ObjectOutputStream(gos); |
139 | 139 |
140 oos.writeObject(original); | 140 oos.writeObject(original); |
141 oos.flush(); | 141 oos.flush(); |
142 oos.close(); | |
142 | 143 |
143 return bos.toByteArray(); | 144 return bos.toByteArray(); |
144 } | 145 } |
145 catch (IOException ioe) { | 146 catch (IOException ioe) { |
146 logger.error(ioe.getLocalizedMessage(), ioe); | 147 logger.error(ioe.getLocalizedMessage(), ioe); |