public override IntIndexOutput CreateOutput(Directory dir, string fileName, IOContext context)
            {
                IndexOutput output  = dir.CreateOutput(fileName, context);
                bool        success = false;

                try
                {
                    FixedIntBlockIndexOutputAnonymousHelper ret = new FixedIntBlockIndexOutputAnonymousHelper(output, blockSize);

                    success = true;
                    return(ret);
                }
                finally
                {
                    if (!success)
                    {
                        IOUtils.CloseWhileHandlingException(output);
                    }
                }
            }
            public override IntIndexOutput CreateOutput(Directory dir, string fileName, IOContext context)
            {
                IndexOutput output = dir.CreateOutput(fileName, context);
                bool success = false;
                try
                {
                    FixedIntBlockIndexOutputAnonymousHelper ret = new FixedIntBlockIndexOutputAnonymousHelper(output, blockSize);

                    success = true;
                    return ret;
                }
                finally
                {
                    if (!success)
                    {
                        IOUtils.CloseWhileHandlingException(output);
                    }
                }
            }