Is there anyway to check whether an OutputStream is closed without attempting to write to it and catching the IOException?
IOException
For example, consider the fol
by using out.checkError()
while(!System.out.checkError()) { System.out.println('hi'); }
found it here: How do I get java to exit when piped to head