/[projects]/android/TrainInfoServiceGoogle/war/WEB-INF/classes/dk/thoerup/traininfoservice/banedk/RejseplanenFetcher.class
ViewVC logotype

Contents of /android/TrainInfoServiceGoogle/war/WEB-INF/classes/dk/thoerup/traininfoservice/banedk/RejseplanenFetcher.class

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1080 - (show annotations) (download) (as text)
Mon Sep 20 20:11:55 2010 UTC (13 years, 7 months ago) by torben
File MIME type: application/octet-stream
File size: 4137 byte(s)
Add a copy with partial support for google app engine
1 25dk/thoerup/traininfoservice/banedk/RejseplanenFetcherjava/lang/ObjectloggerLjava/util/logging/Logger;formatLjava/text/SimpleDateFormat;<init>()VCode
2 
3
4 java/lang/Class getName()Ljava/lang/String;
5 java/util/logging/Logger  getLogger.(Ljava/lang/String;)Ljava/util/logging/Logger;  java/text/SimpleDateFormatHH:mm
6 ! "(Ljava/lang/String;)V $ LineNumberTableLocalVariableTablethis7Ldk/thoerup/traininfoservice/banedk/RejseplanenFetcher;getNow+java/util/Date
7 *
8 . /$(Ljava/util/Date;)Ljava/lang/String;lookupDepartures&(ILjava/lang/String;Z)Ljava/util/List;
9 Exceptions4java/lang/Exception Signature\(ILjava/lang/String;Z)Ljava/util/List<Ldk/thoerup/android/traininfo/common/DepartureEntry;>;8java/util/ArrayList
10 7 ;java/lang/StringBuilder=8http://www.rejseplanen.dk/bin/stboard.exe/mn?ml=m&input=
11 :!
12 :@ ABappend(I)Ljava/lang/StringBuilder;D&boardType=dep&time=
13 :F AG-(Ljava/lang/String;)Ljava/lang/StringBuilder;
14 I )KF&productsFilter=11111000001&selectDate=today&maxJourneys=200&start=yes
15 :M NtoStringP java/net/URL
16 O!
17 SUTorg/jsoup/Jsoup VWparse+(Ljava/net/URL;I)Lorg/jsoup/nodes/Document;YhafasSqResults
18 []\org/jsoup/nodes/Document ^_getElementById-(Ljava/lang/String;)Lorg/jsoup/nodes/Element;atr
19 cedorg/jsoup/nodes/Element fggetElementsByTag/(Ljava/lang/String;)Lorg/jsoup/select/Elements;
20 ikjorg/jsoup/select/Elements lmiterator()Ljava/util/Iterator; oqpjava/util/Iterator rsnext()Ljava/lang/Object;
21 cu vidxtr.id=
22 z {"info}class
23 c attr&(Ljava/lang/String;)Ljava/lang/String;sqToggleDetails
24 java/lang/String indexOf(Ljava/lang/String;)Itd td count=
25 i size()I
26  "severe
27 : =
28 i get(I)Lorg/jsoup/nodes/Element;2dk/thoerup/android/traininfo/common/DepartureEntry
29
30 c text
31 "setTime
32 
33 setUpdated(I)V
34 "setTrainNumberdivbold
35 c ggetElementsByClass
36 "setDestination java/util/List add(Ljava/lang/Object;)Z o hasNext()Z No departures found for station=, type=
37  "warning stationcodeItypeLjava/lang/String;arrivalZ departureListLjava/util/List;uridocLorg/jsoup/nodes/Document;tableLorg/jsoup/nodes/Element; tableRowsLorg/jsoup/select/Elements;
38 currentRowrowClassfieldsf departure4Ldk/thoerup/android/traininfo/common/DepartureEntry;timeupdated trainNumber destinationLocalVariableTypeTableFLjava/util/List<Ldk/thoerup/android/traininfo/common/DepartureEntry;>; StackMapTable
39 SourceFileRejseplanenFetcher.java!
40  T* **Y #%& '() 9*#*Y,-%& '(012356 7Y9::Y<>?CE*HEJEL:OYQ ĸR:XZ:8`b:h:
41 
42 nc:  t: *:Yw> ELy |~:    b: *:Y> ?L 60*:Y?E |~EL ̻Y: :6 : b:W
43 #*:Y>?¶E,EL%%# ',)=-F/K0T2j3q45679:;=>=CE"F)H,I3K>LERKSPTTUYV]W`RbXiks2pt&'( ,w=fF]T,j qv :\"Q,G>5b  ^ [cior[cicoi,n [cio [c

Properties

Name Value
svn:mime-type application/octet-stream

  ViewVC Help
Powered by ViewVC 1.1.20