/[projects]/android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/banedk/TimetableServlet.java
ViewVC logotype

Diff of /android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/banedk/TimetableServlet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1104 by torben, Mon Sep 20 20:11:55 2010 UTC revision 1105 by torben, Wed Sep 22 21:09:39 2010 UTC
# Line 2  package dk.thoerup.traininfoservice.bane Line 2  package dk.thoerup.traininfoservice.bane
2    
3  import java.io.ByteArrayOutputStream;  import java.io.ByteArrayOutputStream;
4  import java.io.IOException;  import java.io.IOException;
5    import java.io.StringWriter;
6    
7  import java.util.logging.Level;  import java.util.logging.Level;
8  import java.util.logging.Logger;  import java.util.logging.Logger;
# Line 84  public class TimetableServlet extends Ht Line 85  public class TimetableServlet extends Ht
85          String formatTimetable(TimetableBean timetable) throws ServletException {          String formatTimetable(TimetableBean timetable) throws ServletException {
86                  Serializer serializer = new Persister();                  Serializer serializer = new Persister();
87    
88                  ByteArrayOutputStream out = new ByteArrayOutputStream();                  StringWriter out = new StringWriter();
89    
90                  try {                  try {
91                          serializer.write(timetable, out);                          serializer.write(timetable, out);

Legend:
Removed from v.1104  
changed lines
  Added in v.1105

  ViewVC Help
Powered by ViewVC 1.1.20