import java.util.Iterator;
import java.util.List;
-import org.argeo.ArgeoException;
-
/** Write in CSV format. */
public class CsvWriter {
private final Writer out;
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);
}
}
out.write('\n');
out.flush();
} catch (IOException e) {
- throw new ArgeoException("Could not write " + tokens, e);
+ throw new UtilsException("Could not write " + tokens, e);
}
}
out.write('\n');
out.flush();
} catch (IOException e) {
- throw new ArgeoException("Could not write " + tokens, e);
+ throw new UtilsException("Could not write " + tokens, e);
}
}