]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.util/src/org/argeo/util/CsvWriter.java
Remove APIs from utils
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / CsvWriter.java
index d90f474123f1c5d3fe41dae16f661341f976c1e1..4b9fea3faa093ca99e4e47d42c7c3715c359afaa 100644 (file)
@@ -23,8 +23,6 @@ import java.io.Writer;
 import java.util.Iterator;
 import java.util.List;
 
-import org.argeo.ArgeoException;
-
 /** Write in CSV format. */
 public class CsvWriter {
        private final Writer out;
@@ -52,7 +50,7 @@ public class CsvWriter {
                try {
                        this.out = new OutputStreamWriter(out, encoding);
                } catch (UnsupportedEncodingException e) {
-                       throw new ArgeoException("Cannot initialize CSV writer", e);
+                       throw new UtilsException("Cannot initialize CSV writer", e);
                }
        }
 
@@ -72,7 +70,7 @@ public class CsvWriter {
                        out.write('\n');
                        out.flush();
                } catch (IOException e) {
-                       throw new ArgeoException("Could not write " + tokens, e);
+                       throw new UtilsException("Could not write " + tokens, e);
                }
        }
 
@@ -96,7 +94,7 @@ public class CsvWriter {
                        out.write('\n');
                        out.flush();
                } catch (IOException e) {
-                       throw new ArgeoException("Could not write " + tokens, e);
+                       throw new UtilsException("Could not write " + tokens, e);
                }
        }