public void writTwitterStreamToCSV(Status status) {
        try {
            bufferedWriter.write(status.getId()
                    + "," + StringEscapeUtils.escapeCsv(status.getUser().getScreenName())
                    + ","  + StringEscapeUtils.escapeCsv(status.getText())
                    + ","  + StringEscapeUtils.escapeCsv(status.getSource())
                    + ","  + status.getRetweetCount()
                    + ","  + status.getFavoriteCount()
                    + ","  + status.getCreatedAt()
            );

            if (status.getGeoLocation() != null) {
                bufferedWriter.write("," + String.valueOf(status.getGeoLocation().getLatitude()) // 緯度
                        + "," + String.valueOf(status.getGeoLocation().getLongitude()));//経度
            } else {
                bufferedWriter.write(",,");
            }

            MediaEntity[] arrMedia = status.getMediaEntities();

            for (MediaEntity media : arrMedia) {
                bufferedWriter.write("," + media.getMediaURL());
            }

            // mediaのMAXは4
            int blanknum = 4 - arrMedia.length;

            for (int i=1 ; i <= blanknum ; i++) {
                bufferedWriter.write(",");
            }

            bufferedWriter.write("," + String.valueOf(status.getCreatedAt().getTime() / 1000L));

            bufferedWriter.newLine();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }