Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA50Parser.java @ 4788:03c824858a40
DA50Parser: Doc, removed and added a TODO.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 08 Jan 2013 17:20:34 +0100 |
parents | 170cf87a042a |
children |
comparison
equal
deleted
inserted
replaced
4787:9c1964fe3995 | 4788:03c824858a40 |
---|---|
61 public Map<Double, List<XY>> getData() { | 61 public Map<Double, List<XY>> getData() { |
62 return data; | 62 return data; |
63 } | 63 } |
64 | 64 |
65 | 65 |
66 /** Walk a directory tree and attempt parsing all *.d50 files. */ | |
66 public void parseDA50s(File root, final Callback callback) { | 67 public void parseDA50s(File root, final Callback callback) { |
67 | 68 |
68 // TODO use the removeExtension/guess description and date. | |
69 FileTools.walkTree(root, new FileTools.FileVisitor() { | 69 FileTools.walkTree(root, new FileTools.FileVisitor() { |
70 @Override | 70 @Override |
71 public boolean visit(File file) { | 71 public boolean visit(File file) { |
72 // TODO check presence of TIM file. | |
72 if (file.isFile() && file.canRead() | 73 if (file.isFile() && file.canRead() |
73 && file.getName().toLowerCase().endsWith(".d50") | 74 && file.getName().toLowerCase().endsWith(".d50") |
74 && (callback == null || callback.accept(file))) { | 75 && (callback == null || callback.accept(file))) { |
75 reset(); | 76 reset(); |
76 try { | 77 try { |