Esempio n. 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void closeSeeker() throws java.io.IOException
        private void CloseSeeker()
        {
            if (_seeker != null)
            {
                _seeker.close();
                _seeker = null;
            }
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void ensureCursorClosed() throws java.io.IOException
        private void EnsureCursorClosed()
        {
            if (!_closed)
            {
                _seeker.close();
                _toRemoveFromWhenExhausted.remove(_seeker);
                _closed = true;
            }
        }
Esempio n. 3
0
 public override void Close()
 {
     if (!_closed)
     {
         _closed = true;
         try
         {
             Seeker.close();
             _toRemoveFromOnClose.remove(Seeker);
         }
         catch (IOException e)
         {
             throw new UncheckedIOException(e);
         }
     }
 }
 public virtual void Close()
 {
     if (!Closed)
     {
         try
         {
             Cursor.close();
         }
         catch (IOException e)
         {
             throw new UncheckedIOException(e);
         }
         finally
         {
             _toRemoveFromWhenClosed.remove(Cursor);
             Closed = true;
         }
     }
 }