Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Batch upgrades for ONAP
[aaf/authz.git]
/
cadi
/
core
/
src
/
main
/
java
/
org
/
onap
/
aaf
/
cadi
/
util
/
CSV.java
diff --git
a/cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java
b/cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java
index
4ae6831
..
c7fada7
100644
(file)
--- a/
cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java
+++ b/
cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java
@@
-45,8
+45,8
@@
public class CSV {
csv = file;
}
csv = file;
}
- public CSV(String csv
OfProperties
) {
- csv = new File(csv
OfProperties
);
+ public CSV(String csv
Filename
) {
+ csv = new File(csv
Filename
);
}
}
@@
-126,13
+126,17
@@
public class CSV {
}
public Writer writer() throws FileNotFoundException {
}
public Writer writer() throws FileNotFoundException {
- return new Writer();
+ return new Writer(
false
);
}
}
-
+
+ public Writer writer(boolean append) throws FileNotFoundException {
+ return new Writer(append);
+ }
+
public class Writer {
private PrintStream ps;
public class Writer {
private PrintStream ps;
- private Writer() throws FileNotFoundException {
- ps = new PrintStream(new FileOutputStream(csv));
+ private Writer(
final boolean append
) throws FileNotFoundException {
+ ps = new PrintStream(new FileOutputStream(csv
,append
));
}
public void row(Object ... strings) {
if(strings.length>0) {
}
public void row(Object ... strings) {
if(strings.length>0) {
@@
-177,6
+181,10
@@
public class CSV {
public void close() {
ps.close();
}
public void close() {
ps.close();
}
+
+ public String toString() {
+ return csv.getAbsolutePath();
+ }
}
public void delete() {
}
public void delete() {