title: platform-independent /dev/null output sink for Java
body: <p>Other than an anonymous class (<code>new OutputStream() { ... }</code>), can anyone suggest a moral equivalent of <code>new FileOutputStream("/dev/null")</code> that also works on Windows?</p>
  
  <p>In case someone's wondering 'what's this for?'</p>
  
  <p>I have a program that does a consistency analysis on a file. It has a 'verbose' option. When the verbose option is on, I want to see a lot of output. The program is not in a hurry, it's a tool, so instead of writing all those extra <code>if</code> statements to test if I want the output, I just want to write it to the bit-bucket when not desired.</p>