Code example for PrintStream

Methods: closeprintf

0
	 
    @Override 
    public void notify(final Activity activity, final GnipStream stream) {
        final int i = itemsRead.getAndIncrement();
         
        outputStream.printf("%s\n", activity.getBody());
         
        if (i >= itemsToRead) {
            stream.close();
            outputStream.close();
        } 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE