boolean nextSource() throws IOException {
  if (mSourceIt.hasNext()) {
    final InputStream is=mSourceIt.next();
    if (is == null) {
      mSource=null;
      return false;
    }
 else {
      mSource=new BufferedInputStream(is,FileUtils.BUFFERED_STREAM_SIZE);
    }
    mSourceClosed=false;
    mInputBufferPosition=0;
    mInputBufferLength=0;
    mBufferLength=0;
    mBufferPosition=0;
    return true;
  }
  if (mSource != null) {
    mSource.close();
  }
  mSource=null;
  return false;
}

boolean nextSource ( ) throws IOException { if ( mSourceIt . hasNext ( ) ) { final InputStream is = mSourceIt . next ( ) ; if ( is == null ) { mSource = null ; return false ; } else { mSource = new BufferedInputStream ( is , FileUtils . BUFFERED_STREAM_SIZE ) ; } mSourceClosed = false ; mInputBufferPosition = 0 ; mInputBufferLength = 0 ; mBufferLength = 0 ; mBufferPosition = 0 ; return true ; } if ( mSource != null ) { mSource . close ( ) ; } mSource = null ; return false ; }
step to the next input stream .
