public int close()
  {
    int retval = 0;
    try
    {
      if (mOpenStream != null && mCloseStreamOnClose)
      {
        mOpenStream.close();
      }
    }
    catch (IOException e)
    {
      log.error("could not close stream {}: {}", mOpenStream, e);
      retval = -1;
    }
    mOpenStream = null;
    return retval;
  }
public int close()
  {
    int retval = 0;
    try
    {
      if (mOpenStream != null && mCloseStreamOnClose)
      {
        mOpenStream.close();
      }
    }
    catch (IOException e)
    {
      log.error("could not close stream {}: {}", mOpenStream, e);
      retval = -1;
    }
    mOpenStream = null;
    return retval;
  }
public int close ( ) { int retval = 0 ; try { if ( mOpenStream != null && mCloseStreamOnClose ) { mOpenStream . close ( ) ; } } catch ( IOException e ) { log . error ( "could not close stream {}: {}" , mOpenStream , e ) ; retval = - 1 ; } mOpenStream = null ; return retval ; }
{@inheritDoc}
{