summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosCSV.java
diff options
context:
space:
mode:
Diffstat (limited to 'ao-tools/altosui/AltosCSV.java')
-rw-r--r--ao-tools/altosui/AltosCSV.java20
1 files changed, 4 insertions, 16 deletions
diff --git a/ao-tools/altosui/AltosCSV.java b/ao-tools/altosui/AltosCSV.java
index f7b3c03c..7f14adad 100644
--- a/ao-tools/altosui/AltosCSV.java
+++ b/ao-tools/altosui/AltosCSV.java
@@ -207,22 +207,10 @@ public class AltosCSV {
out.close();
}
- public void write(AltosReader reader) {
- AltosRecord record;
-
- reader.write_comments(out());
- try {
- for (;;) {
- record = reader.read();
- if (record == null)
- break;
- write(record);
- }
- } catch (IOException ie) {
- System.out.printf("IOException\n");
- } catch (ParseException pe) {
- System.out.printf("ParseException %s\n", pe.getMessage());
- }
+ public void write(AltosRecordIterable iterable) {
+ iterable.write_comments(out());
+ for (AltosRecord r : iterable)
+ write(r);
}
public AltosCSV(File in_name) throws FileNotFoundException {