I'm using Twitter4j to access the Twitter streaming API, and I want to limit the tweets I get from the sample stream to English language tweets. I had thought that the way to do this would be as follows, based on the Javadoc:
FilterQuery fq = new FilterQuery();
String[] lang = { "en" };
fq.language(lang);// = "test";
twitterStream.filter(fq);
But, when I try and run that, I get a compiler error saying the FilterQuery objects don't have a public language method. Does anyone know what's going on?
Edit: I'm using version 3.0.3 of the JAR file