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();
        } 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java