Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-364

TwitterJSONCollection incorrectly assumes all files are gzipped.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None

      Description

      Documentation for the TwitterJSONCollection class says: "Each file is assumed to be in gzip format, with one tweet per line. "

      Line 109 has:
       currentTweetStream = new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(file)),"UTF-8"));

      This can simply be replaced with
      currentTweetStream = Files.openFileReader( file, "UTF-8" );
      and the documentation updated.

        Attachments

          Activity

            People

            • Assignee:
              craigm Craig Macdonald
              Reporter:
              craigm Craig Macdonald
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: