Author: elecharny
Date: Fri Jul 5 14:56:16 2013
New Revision: 1500030
URL: http://svn.apache.org/r1500030
Log:
Some more removal of the IOException from the cursor API
Modified:
directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java
directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java
directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/Cursor.java
directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/EmptyCursor.java
directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/ListCursor.java
directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SetCursor.java
directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SingletonCursor.java
Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java?rev=1500030&r1=1500029&r2=1500030&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/EntryCursorImpl.java
Fri Jul 5 14:56:16 2013
@@ -21,8 +21,6 @@
package org.apache.directory.ldap.client.api;
-import java.io.IOException;
-
import org.apache.directory.api.i18n.I18n;
import org.apache.directory.api.ldap.model.constants.Loggers;
import org.apache.directory.api.ldap.model.cursor.AbstractCursor;
@@ -138,7 +136,7 @@ public class EntryCursorImpl extends Abs
/**
* {@inheritDoc}
*/
- public Entry get() throws CursorException, IOException
+ public Entry get() throws CursorException
{
if ( !searchCursor.available() )
{
@@ -228,7 +226,7 @@ public class EntryCursorImpl extends Abs
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public void after( Entry element ) throws LdapException, CursorException, IOException
+ public void after( Entry element ) throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "after( Response element )" ) ) );
@@ -239,7 +237,7 @@ public class EntryCursorImpl extends Abs
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public void afterLast() throws LdapException, CursorException, IOException
+ public void afterLast() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "afterLast()" ) ) );
@@ -250,7 +248,7 @@ public class EntryCursorImpl extends Abs
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public void before( Entry element ) throws LdapException, CursorException, IOException
+ public void before( Entry element ) throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "before( Response element )" ) ) );
@@ -261,7 +259,7 @@ public class EntryCursorImpl extends Abs
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public void beforeFirst() throws LdapException, CursorException, IOException
+ public void beforeFirst() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "beforeFirst()" ) ) );
@@ -272,7 +270,7 @@ public class EntryCursorImpl extends Abs
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public boolean first() throws LdapException, CursorException, IOException
+ public boolean first() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "first()" ) ) );
@@ -283,7 +281,7 @@ public class EntryCursorImpl extends Abs
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public boolean last() throws LdapException, CursorException, IOException
+ public boolean last() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "last()" ) ) );
@@ -294,7 +292,7 @@ public class EntryCursorImpl extends Abs
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public boolean previous() throws LdapException, CursorException, IOException
+ public boolean previous() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "previous()" ) ) );
Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java?rev=1500030&r1=1500029&r2=1500030&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SearchCursorImpl.java
Fri Jul 5 14:56:16 2013
@@ -21,7 +21,6 @@
package org.apache.directory.ldap.client.api;
-import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.apache.directory.api.i18n.I18n;
@@ -156,7 +155,7 @@ public class SearchCursorImpl extends Ab
/**
* {@inheritDoc}
*/
- public Response get() throws InvalidCursorPositionException, IOException
+ public Response get() throws InvalidCursorPositionException
{
if ( !available() )
{
@@ -239,7 +238,7 @@ public class SearchCursorImpl extends Ab
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public void after( Response element ) throws LdapException, CursorException, IOException
+ public void after( Response element ) throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "after( Response element )" ) ) );
@@ -250,7 +249,7 @@ public class SearchCursorImpl extends Ab
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public void afterLast() throws LdapException, CursorException, IOException
+ public void afterLast() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "afterLast()" ) ) );
@@ -261,7 +260,7 @@ public class SearchCursorImpl extends Ab
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public void before( Response element ) throws LdapException, CursorException, IOException
+ public void before( Response element ) throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "before( Response element )" ) ) );
@@ -272,7 +271,7 @@ public class SearchCursorImpl extends Ab
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public void beforeFirst() throws LdapException, CursorException, IOException
+ public void beforeFirst() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "beforeFirst()" ) ) );
@@ -283,7 +282,7 @@ public class SearchCursorImpl extends Ab
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public boolean first() throws LdapException, CursorException, IOException
+ public boolean first() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "first()" ) ) );
@@ -294,7 +293,7 @@ public class SearchCursorImpl extends Ab
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public boolean last() throws LdapException, CursorException, IOException
+ public boolean last() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "last()" ) ) );
@@ -305,7 +304,7 @@ public class SearchCursorImpl extends Ab
* This operation is not supported in SearchCursor.
* {@inheritDoc}
*/
- public boolean previous() throws LdapException, CursorException, IOException
+ public boolean previous() throws LdapException, CursorException
{
throw new UnsupportedOperationException( I18n.err( I18n.ERR_02014_UNSUPPORTED_OPERATION,
getClass().getName()
.concat( "." ).concat( "previous()" ) ) );
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/Cursor.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/Cursor.java?rev=1500030&r1=1500029&r2=1500030&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/Cursor.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/Cursor.java
Fri Jul 5 14:56:16 2013
@@ -67,7 +67,7 @@ public interface Cursor<E> extends Itera
* @param element the element to be positioned before
* @throws Exception with problems accessing the underlying btree
*/
- void before( E element ) throws LdapException, CursorException, IOException;
+ void before( E element ) throws LdapException, CursorException;
/**
@@ -85,7 +85,7 @@ public interface Cursor<E> extends Itera
* @throws Exception if there are problems positioning this cursor or if
* this Cursor is closed
*/
- void after( E element ) throws LdapException, CursorException, IOException;
+ void after( E element ) throws LdapException, CursorException;
/**
@@ -94,7 +94,7 @@ public interface Cursor<E> extends Itera
* @throws Exception if there are problems positioning this cursor or if
* this Cursor is closed
*/
- void beforeFirst() throws LdapException, CursorException, IOException;
+ void beforeFirst() throws LdapException, CursorException;
/**
@@ -103,7 +103,7 @@ public interface Cursor<E> extends Itera
* @throws Exception if there are problems positioning this Cursor or if
* this Cursor is closed
*/
- void afterLast() throws LdapException, CursorException, IOException;
+ void afterLast() throws LdapException, CursorException;
/**
@@ -114,7 +114,7 @@ public interface Cursor<E> extends Itera
* @throws Exception if there are problems positioning this Cursor or if
* this Cursor is closed
*/
- boolean first() throws LdapException, CursorException, IOException;
+ boolean first() throws LdapException, CursorException;
/**
@@ -147,7 +147,7 @@ public interface Cursor<E> extends Itera
* @throws Exception if there are problems positioning this Cursor or if
* this Cursor is closed
*/
- boolean last() throws LdapException, CursorException, IOException;
+ boolean last() throws LdapException, CursorException;
/**
@@ -190,7 +190,7 @@ public interface Cursor<E> extends Itera
* @return true if the advance succeeded, false otherwise
* @throws Exception if there are problems advancing to the next position
*/
- boolean previous() throws LdapException, CursorException, IOException;
+ boolean previous() throws LdapException, CursorException;
/**
@@ -219,7 +219,7 @@ public interface Cursor<E> extends Itera
* cannot be retrieved, or if this Cursor is closed
* @throws IOException If we have had any IO Exception
*/
- E get() throws CursorException, IOException;
+ E get() throws CursorException;
/**
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/EmptyCursor.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/EmptyCursor.java?rev=1500030&r1=1500029&r2=1500030&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/EmptyCursor.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/EmptyCursor.java
Fri Jul 5 14:56:16 2013
@@ -19,8 +19,6 @@
package org.apache.directory.api.ldap.model.cursor;
-import java.io.IOException;
-
import org.apache.directory.api.i18n.I18n;
import org.apache.directory.api.ldap.model.constants.Loggers;
import org.apache.directory.api.ldap.model.exception.LdapException;
@@ -64,7 +62,7 @@ public class EmptyCursor<E> extends Abst
/**
* {@inheritDoc}
*/
- public void before( E element ) throws LdapException, CursorException, IOException
+ public void before( E element ) throws LdapException, CursorException
{
checkNotClosed( "before()" );
}
@@ -73,7 +71,7 @@ public class EmptyCursor<E> extends Abst
/**
* {@inheritDoc}
*/
- public void after( E element ) throws LdapException, CursorException, IOException
+ public void after( E element ) throws LdapException, CursorException
{
checkNotClosed( "after()" );
}
@@ -82,7 +80,7 @@ public class EmptyCursor<E> extends Abst
/**
* {@inheritDoc}
*/
- public void beforeFirst() throws LdapException, CursorException, IOException
+ public void beforeFirst() throws LdapException, CursorException
{
checkNotClosed( "beforeFirst()" );
}
@@ -91,7 +89,7 @@ public class EmptyCursor<E> extends Abst
/**
* {@inheritDoc}
*/
- public void afterLast() throws LdapException, CursorException, IOException
+ public void afterLast() throws LdapException, CursorException
{
checkNotClosed( "afterLast()" );
}
@@ -100,7 +98,7 @@ public class EmptyCursor<E> extends Abst
/**
* {@inheritDoc}
*/
- public boolean first() throws LdapException, CursorException, IOException
+ public boolean first() throws LdapException, CursorException
{
checkNotClosed( "first()" );
return false;
@@ -110,7 +108,7 @@ public class EmptyCursor<E> extends Abst
/**
* {@inheritDoc}
*/
- public boolean last() throws LdapException, CursorException, IOException
+ public boolean last() throws LdapException, CursorException
{
checkNotClosed( "last()" );
return false;
@@ -120,7 +118,7 @@ public class EmptyCursor<E> extends Abst
/**
* {@inheritDoc}
*/
- public boolean previous() throws LdapException, CursorException, IOException
+ public boolean previous() throws LdapException, CursorException
{
checkNotClosed( "previous()" );
return false;
@@ -140,7 +138,7 @@ public class EmptyCursor<E> extends Abst
/**
* {@inheritDoc}
*/
- public E get() throws CursorException, IOException
+ public E get() throws CursorException
{
checkNotClosed( "get()" );
throw new InvalidCursorPositionException( I18n.err( I18n.ERR_02004_EMPTY_CURSOR )
);
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/ListCursor.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/ListCursor.java?rev=1500030&r1=1500029&r2=1500030&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/ListCursor.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/ListCursor.java
Fri Jul 5 14:56:16 2013
@@ -19,7 +19,6 @@
package org.apache.directory.api.ldap.model.cursor;
-import java.io.IOException;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
@@ -247,7 +246,7 @@ public class ListCursor<E> extends Abstr
/**
* {@inheritDoc}
*/
- public void before( E element ) throws LdapException, CursorException, IOException
+ public void before( E element ) throws LdapException, CursorException
{
checkNotClosed( "before()" );
@@ -280,7 +279,7 @@ public class ListCursor<E> extends Abstr
/**
* {@inheritDoc}
*/
- public void after( E element ) throws LdapException, CursorException, IOException
+ public void after( E element ) throws LdapException, CursorException
{
checkNotClosed( "after()" );
@@ -313,7 +312,7 @@ public class ListCursor<E> extends Abstr
/**
* {@inheritDoc}
*/
- public void beforeFirst() throws LdapException, CursorException, IOException
+ public void beforeFirst() throws LdapException, CursorException
{
checkNotClosed( "beforeFirst()" );
this.index = -1;
@@ -323,7 +322,7 @@ public class ListCursor<E> extends Abstr
/**
* {@inheritDoc}
*/
- public void afterLast() throws LdapException, CursorException, IOException
+ public void afterLast() throws LdapException, CursorException
{
checkNotClosed( "afterLast()" );
this.index = end;
@@ -333,7 +332,7 @@ public class ListCursor<E> extends Abstr
/**
* {@inheritDoc}
*/
- public boolean first() throws LdapException, CursorException, IOException
+ public boolean first() throws LdapException, CursorException
{
checkNotClosed( "first()" );
@@ -351,7 +350,7 @@ public class ListCursor<E> extends Abstr
/**
* {@inheritDoc}
*/
- public boolean last() throws LdapException, CursorException, IOException
+ public boolean last() throws LdapException, CursorException
{
checkNotClosed( "last()" );
@@ -409,7 +408,7 @@ public class ListCursor<E> extends Abstr
/**
* {@inheritDoc}
*/
- public boolean previous() throws LdapException, CursorException, IOException
+ public boolean previous() throws LdapException, CursorException
{
checkNotClosed( "previous()" );
@@ -487,13 +486,13 @@ public class ListCursor<E> extends Abstr
/**
* {@inheritDoc}
*/
- public E get() throws CursorException, IOException
+ public E get() throws CursorException
{
checkNotClosed( "get()" );
if ( ( index < start ) || ( index >= end ) )
{
- throw new IOException( I18n.err( I18n.ERR_02009_CURSOR_NOT_POSITIONED ) );
+ throw new CursorException( I18n.err( I18n.ERR_02009_CURSOR_NOT_POSITIONED ) );
}
return list.get( index );
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SetCursor.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SetCursor.java?rev=1500030&r1=1500029&r2=1500030&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SetCursor.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SetCursor.java
Fri Jul 5 14:56:16 2013
@@ -19,7 +19,6 @@
package org.apache.directory.api.ldap.model.cursor;
-import java.io.IOException;
import java.util.Collections;
import java.util.Comparator;
import java.util.Set;
@@ -134,7 +133,7 @@ public class SetCursor<E> extends Abstra
/**
* {@inheritDoc}
*/
- public void before( E element ) throws LdapException, CursorException, IOException
+ public void before( E element ) throws LdapException, CursorException
{
checkNotClosed( "before()" );
@@ -167,7 +166,7 @@ public class SetCursor<E> extends Abstra
/**
* {@inheritDoc}
*/
- public void after( E element ) throws LdapException, CursorException, IOException
+ public void after( E element ) throws LdapException, CursorException
{
checkNotClosed( "after()" );
@@ -200,7 +199,7 @@ public class SetCursor<E> extends Abstra
/**
* {@inheritDoc}
*/
- public void beforeFirst() throws LdapException, CursorException, IOException
+ public void beforeFirst() throws LdapException, CursorException
{
checkNotClosed( "beforeFirst()" );
this.index = -1;
@@ -210,7 +209,7 @@ public class SetCursor<E> extends Abstra
/**
* {@inheritDoc}
*/
- public void afterLast() throws LdapException, CursorException, IOException
+ public void afterLast() throws LdapException, CursorException
{
checkNotClosed( "afterLast()" );
this.index = set.length;
@@ -220,7 +219,7 @@ public class SetCursor<E> extends Abstra
/**
* {@inheritDoc}
*/
- public boolean first() throws LdapException, CursorException, IOException
+ public boolean first() throws LdapException, CursorException
{
checkNotClosed( "first()" );
@@ -238,7 +237,7 @@ public class SetCursor<E> extends Abstra
/**
* {@inheritDoc}
*/
- public boolean last() throws LdapException, CursorException, IOException
+ public boolean last() throws LdapException, CursorException
{
checkNotClosed( "last()" );
@@ -296,7 +295,7 @@ public class SetCursor<E> extends Abstra
/**
* {@inheritDoc}
*/
- public boolean previous() throws LdapException, CursorException, IOException
+ public boolean previous() throws LdapException, CursorException
{
checkNotClosed( "previous()" );
@@ -374,13 +373,13 @@ public class SetCursor<E> extends Abstra
/**
* {@inheritDoc}
*/
- public E get() throws CursorException, IOException
+ public E get() throws CursorException
{
checkNotClosed( "get()" );
if ( ( index < 0 ) || ( index >= set.length ) )
{
- throw new IOException( I18n.err( I18n.ERR_02009_CURSOR_NOT_POSITIONED ) );
+ throw new CursorException( I18n.err( I18n.ERR_02009_CURSOR_NOT_POSITIONED ) );
}
return set[index];
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SingletonCursor.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SingletonCursor.java?rev=1500030&r1=1500029&r2=1500030&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SingletonCursor.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/cursor/SingletonCursor.java
Fri Jul 5 14:56:16 2013
@@ -19,7 +19,6 @@
package org.apache.directory.api.ldap.model.cursor;
-import java.io.IOException;
import java.util.Comparator;
import org.apache.directory.api.i18n.I18n;
@@ -101,7 +100,7 @@ public class SingletonCursor<E> extends
/**
* {@inheritDoc}
*/
- public void before( E element ) throws LdapException, CursorException, IOException
+ public void before( E element ) throws LdapException, CursorException
{
checkNotClosed( "before()" );
@@ -126,7 +125,7 @@ public class SingletonCursor<E> extends
/**
* {@inheritDoc}
*/
- public void after( E element ) throws LdapException, CursorException, IOException
+ public void after( E element ) throws LdapException, CursorException
{
checkNotClosed( "after()" );
@@ -151,7 +150,7 @@ public class SingletonCursor<E> extends
/**
* {@inheritDoc}
*/
- public void beforeFirst() throws LdapException, CursorException, IOException
+ public void beforeFirst() throws LdapException, CursorException
{
checkNotClosed( "beforeFirst" );
beforeFirst = true;
@@ -163,7 +162,7 @@ public class SingletonCursor<E> extends
/**
* {@inheritDoc}
*/
- public void afterLast() throws LdapException, CursorException, IOException
+ public void afterLast() throws LdapException, CursorException
{
checkNotClosed( "afterLast" );
beforeFirst = false;
@@ -175,7 +174,7 @@ public class SingletonCursor<E> extends
/**
* {@inheritDoc}
*/
- public boolean first() throws LdapException, CursorException, IOException
+ public boolean first() throws LdapException, CursorException
{
checkNotClosed( "first" );
beforeFirst = false;
@@ -189,7 +188,7 @@ public class SingletonCursor<E> extends
/**
* {@inheritDoc}
*/
- public boolean last() throws LdapException, CursorException, IOException
+ public boolean last() throws LdapException, CursorException
{
checkNotClosed( "last" );
beforeFirst = false;
@@ -243,7 +242,7 @@ public class SingletonCursor<E> extends
/**
* {@inheritDoc}
*/
- public boolean previous() throws LdapException, CursorException, IOException
+ public boolean previous() throws LdapException, CursorException
{
checkNotClosed( "previous" );
@@ -303,7 +302,7 @@ public class SingletonCursor<E> extends
/**
* {@inheritDoc}
*/
- public E get() throws CursorException, IOException
+ public E get() throws CursorException
{
checkNotClosed( "get" );
|