title: "Turn off" the output stream
body: <p>I'm using a wayward library that, unfortunately, prints information to <code>System.out</code> (or occasionally <code>System.err</code>). What's the simplest way to prevent this?</p>
  
  <p>I've been thinking about creating an output stream to memory, replace <code>System.out</code> and <code>err</code> before every call to one of the troublemaking methods, restore them later, and just ignore the buffer of the created stream. Is there an easier, more elegant way?</p>
  
  <p><em>EDIT:</em> I don't want to redirect all output - that's easily accomplished. I only want to ignore output potentially generated by certain library calls.</p>