public void close() throws IOException {
  ensureBlocksNotEmpty();
  if (closed)   return;
  if (hasMoreBlocks()) {
    nextBlock();
    return;
  }
  if (DEBUG)   LOGGER.debug("Closing the underlying input stream of this segmented input stream");
  closed=true;
  in.close();
}

public void close ( ) throws IOException { ensureBlocksNotEmpty ( ) ; if ( closed ) return ; if ( hasMoreBlocks ( ) ) { nextBlock ( ) ; return ; } if ( DEBUG ) LOGGER . debug ( "Closing the underlying input stream of this segmented input stream" ) ; closed = true ; in . close ( ) ; }
skips to the next block , closing this segmented input stream if there are no more blocks .
