summaryrefslogtreecommitdiff
path: root/src/io/DataWriter.java
AgeCommit message (Collapse)AuthorFilesLines
2014-05-03DataWriter: first read, then open for writingPeter Wu1-2/+3
Prevents occasional "Unexpected end of ZLIB input stream" errors.
2014-05-03DataWriter: better detect errors in reading dataPeter Wu1-6/+13
Now print the faulty line and line number. Using BufferedReader instead of Scanner also gave me a hint of the error, so let's stick to it.
2014-05-02Properly close files and stream on exitPeter Wu1-1/+2
2014-05-02DataWriter should not open files in constructorPeter Wu1-19/+40
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.
2014-05-02Fix typo in DataWriterPeter Wu1-1/+1
2014-05-02Abort if file cannot be read, don't leak on errorPeter Wu1-11/+17
2014-05-02DataWriter: don't leak input fdPeter Wu1-1/+10
2014-05-02Refactor DataWriter once more to group a filePeter Wu1-37/+79
The input and output file are closely related, do not burden others with tracking which output and input need to be matched.
2014-05-02Make DataWriter more genericPeter Wu1-11/+40
Prepare for compressed file formats, this requires that the data writer can handle compressed files. In theory an implementation can even write stuff over the network instead of a file.
2014-05-02Don't ignore IOException stupid!Peter Wu1-34/+23
Files may not be accessible if they are read-only, or if the directory is read-only, or ... whatever. So, let the caller handle IOException in DataWriter. Return a set if it can be read. Do some misc cleanups (remove unused imports, fix docs, remove obsolete TODOs).
2014-05-01Added the target command with options: file, shell.Maurice Laveaux1-4/+15
* Implemented target file, which uses DataWriter as RequestListener which writes the tweets and profiles. * Added profiles-filename, tweets-filename to the config.
2014-04-30Fix namesPeter Wu1-5/+4
2014-04-30Renamed OutputStream.java because it was part of the Java classes.Maurice Laveaux1-0/+137