trash(INPUT, OUTPUT);
}
public String getTweet(long date, String hashTag, String location) throws ParseException, JsonGenerationException, JsonMappingException, IOException {
ObjectMapper mapper = new ObjectMapper();
SimpleTweet tweet = new SimpleTweet();
tweet.setCreated_at(SimpleTweet.dateFormat.format(new Date(date)));
tweet.setEntities(new Entities());
tweet.getEntities().setHashtags(new ArrayList<HashTag>());
tweet.getEntities().getHashtags().add(new HashTag());
tweet.getEntities().getHashtags().get(0).setText(hashTag);
tweet.setUser(new UserInfo());
tweet.getUser().setLocation(location);
return mapper.writeValueAsString(tweet);
}