Example #1
0
            public override object Clone()
            {
                FaultyIndexInput i = new FaultyIndexInput((IndexInput)@delegate.Clone());

                // seek the clone to our current position
                try
                {
                    i.Seek(GetFilePointer());
                }
#pragma warning disable 168
                catch (IOException e)
#pragma warning restore 168
                {
                    throw new Exception();
                }
                return(i);
            }
Example #2
0
 public override object Clone()
 {
     FaultyIndexInput i = new FaultyIndexInput((IndexInput)@delegate.Clone());
     // seek the clone to our current position
     try
     {
         i.Seek(FilePointer);
     }
     catch (IOException e)
     {
         throw new Exception();
     }
     return i;
 }