code: private static void closeStreams( InputStream src, OutputStream dest )
      {
          try
          {
              src.close();
          }
          catch( IOException e )
          {
              e.printStackTrace();
          }
  
          try
          {
              dest.close();
          }
          catch( IOException e )
          {
              e.printStackTrace();
          }
      }
docs: Closes the streams and reports Exceptions to System.err
  
  @param src  The InputStream to close.
  @param dest The OutputStream to close.