public static void main(String[] args) throws TwitterException, IOException{
StatusListener listener = new StatusListener(){
public void onStatus(Status status) {
System.out.println(status.getUser().getName() + " : " + status.getText());
}
public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {}
public void onTrackLimitationNotice(int numberOfLimitedStatuses) {}
public void onException(Exception ex) {
ex.printStackTrace();
}
我正在使用上面的代码下载流式推文。我得到这个错误。
The type new StatusListener(){} must implement the inherited abstract method StatusListener.onStallWarning(StallWarning)
The type new StatusListener(){} must implement the inherited abstract method StatusListener.onScrubGeo(long, long).
我需要包含任何特定的 jar 文件吗?