summaryrefslogtreecommitdiff
path: root/src/main/TweetShell.java
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-02 23:00:04 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-02 23:00:04 +0200
commitdfae08051eabb3fec6999bed877b7df92d13bb44 (patch)
tree54eea1cce7a12f04f550059b15392c65b45f885c /src/main/TweetShell.java
parente3e31cb1ed354c194af158bb880c941efba25887 (diff)
downloadTwitterDataAnalytics-dfae08051eabb3fec6999bed877b7df92d13bb44.tar.gz
DataWriter should not open files in constructor
Right now Store instances are created in the constructor of DataWriter. This causes issues, namely that Store instances are unable to use DataWriter in its constructor. The real-world implication is that convertUncompressed in CompressableDataWriter is unusable for the CompressedStore.
Diffstat (limited to 'src/main/TweetShell.java')
-rw-r--r--src/main/TweetShell.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/TweetShell.java b/src/main/TweetShell.java
index 1d03efb..8e50f3b 100644
--- a/src/main/TweetShell.java
+++ b/src/main/TweetShell.java
@@ -403,6 +403,7 @@ public class TweetShell implements TwitterApi.PinSupplier {
} else {
dw = new DataWriter(profilesFilename, tweetsFilename);
}
+ dw.open();
resultListeners.register(dw);
// save the changes to the config.
config.save();