comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/AtFileParser.java @ 5331:95af0f3aabfb

AtFileParser, README: Added main-method for AT-File-Parsing debugging, doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 18 Mar 2013 16:49:41 +0100
parents 4ccf1175be1c
children
comparison
equal deleted inserted replaced
5330:4ccf1175be1c 5331:95af0f3aabfb
201 cal.set(yearI, monthI-1, dayI, 12, 0, 0); 201 cal.set(yearI, monthI-1, dayI, 12, 0, 0);
202 long ms = cal.getTimeInMillis(); 202 long ms = cal.getTimeInMillis();
203 cal.setTimeInMillis(ms - ms%1000); 203 cal.setTimeInMillis(ms - ms%1000);
204 return cal.getTime(); 204 return cal.getTime();
205 } 205 }
206
207
208 /** Parse one or more files, (useful for debugging), */
209 public static void main(String [] args) {
210
211 AtFileParser parser = new AtFileParser();
212
213 try {
214 for (String arg: args) {
215 parser.parse(new File(arg));
216 }
217 } catch(Exception e) {
218 logger.error("Exception caught " + e);
219 }
220 }
206 } 221 }
207 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 222 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org