comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java @ 4947:7669747d22f2

Fix cr/nl in ATWriter.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 31 Jan 2013 20:09:37 +0100
parents 04c68af45534
children a929d9a9fa1e
comparison
equal deleted inserted replaced
4946:fdb2dce68322 4947:7669747d22f2
4 import java.io.Writer; 4 import java.io.Writer;
5 import java.io.PrintWriter; 5 import java.io.PrintWriter;
6 import java.math.BigDecimal; 6 import java.math.BigDecimal;
7 7
8 import java.text.DateFormat; 8 import java.text.DateFormat;
9 import java.util.Calendar;
10 import java.util.Date; 9 import java.util.Date;
11 import java.util.Locale; 10 import java.util.Locale;
12 11
13 import de.intevation.artifacts.CallMeta; 12 import de.intevation.artifacts.CallMeta;
14 13
134 PrintWriter out, 133 PrintWriter out,
135 CallMeta callMeta, 134 CallMeta callMeta,
136 String river, 135 String river,
137 double km 136 double km
138 ) { 137 ) {
139 DateFormat f = DateFormat.getDateInstance();
140 out.print(Resources.getMsg( 138 out.print(Resources.getMsg(
141 callMeta, 139 callMeta,
142 I18N_AT_HEADER, 140 I18N_AT_HEADER,
143 I18N_AT_HEADER, 141 I18N_AT_HEADER,
144 new Object[] { river, km } )); 142 new Object[] { river, km } ));
188 else { 186 else {
189 printQ(out, getQ(w)); 187 printQ(out, getQ(w));
190 } 188 }
191 189
192 if (++col >= COLUMNS) { 190 if (++col >= COLUMNS) {
193 out.print("\r"); 191 out.print("\r\n");
194 out.println();
195 col = 0; 192 col = 0;
196 } 193 }
197 } 194 }
198 195
199 if (col > 0) { 196 if (col > 0) {
200 out.println(); 197 out.print("\r\n");
201 } 198 }
202 199
203 out.flush(); 200 out.flush();
204 } 201 }
205 } 202 }

http://dive4elements.wald.intevation.org