Class TweetLoader

java.lang.Object
org.opensextant.data.social.TweetLoader

public class TweetLoader extends Object
  • Field Details

    • MAX_ERROR_COUNT

      public static int MAX_ERROR_COUNT
      The internals of parsing a JSON file of tweets. You provide the receiver logic using JSONListener:
          myListener = JSONListener(){  readObject( String or JSON map); }
      
          TweetLoader.readJSONByLine(file, myListener)
       
  • Constructor Details

    • TweetLoader

      public TweetLoader()
  • Method Details

    • readJSONByLine

      public static void readJSONByLine(File jsonFile, JSONListener ingester) throws IOException
      To read gzip/JSON files one row of JSON at a time. This will tolerate up to MAX_ERROR_COUNT for parsing data files...
      Parameters:
      jsonFile -
      ingester -
      Throws:
      IOException