I don't think you can use writeAll()
directly, as you'll need to build a List<String[]>
beforehand.
Alternatively you could use CSVWriter#writeNext(String[])
to write individual Tweets whilst iterating through QueryResult#getTweets()
, for example:
for (final Status status : result.getTweets())
{
final String[] line = new String[] { Long.toString(status.getId()), status.getText(), ... };
writer.writeLine(line);
}