Code example for OutputStream

Methods: close, flush

0
 
  public void terminate() { 
    if( debugOutput != null ) {
      try { 
        //TODO(Stuart Anderson): Pretty sure we don't need to flush() here. 
        debugOutput.flush();
        debugOutput.close();
      } catch (IOException e) {
      } 
    } 
  } 
}