--- android/TrainInfoService/src/dk/thoerup/traininfoservice/LocateStations.java 2010/11/08 13:22:51 1189 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/LocateStations.java 2010/11/12 18:33:38 1190 @@ -1,7 +1,8 @@ package dk.thoerup.traininfoservice; -import java.io.ByteArrayOutputStream; + import java.io.IOException; +import java.io.StringWriter; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; @@ -75,7 +76,7 @@ Serializer serializer = new Persister(); - ByteArrayOutputStream out = new ByteArrayOutputStream(); + StringWriter out = new StringWriter(); try { serializer.write(stations, out);