Class IterableEntryCursor

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Iterable<org.apache.directory.api.ldap.model.entry.Entry>, org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>

    public class IterableEntryCursor
    extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
    • Constructor Detail

      • IterableEntryCursor

        public IterableEntryCursor​(org.slf4j.Logger logger,
                                   Cursor<org.apache.directory.api.ldap.model.entry.Entry> entries)
    • Method Detail

      • before

        public void before​(org.apache.directory.api.ldap.model.entry.Entry entry)
                    throws org.apache.directory.api.ldap.model.exception.LdapException,
                           org.apache.directory.api.ldap.model.cursor.CursorException
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • after

        public void after​(org.apache.directory.api.ldap.model.entry.Entry entry)
                   throws org.apache.directory.api.ldap.model.exception.LdapException,
                          org.apache.directory.api.ldap.model.cursor.CursorException
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • beforeFirst

        public void beforeFirst()
                         throws org.apache.directory.api.ldap.model.exception.LdapException,
                                org.apache.directory.api.ldap.model.cursor.CursorException
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • afterLast

        public void afterLast()
                       throws org.apache.directory.api.ldap.model.exception.LdapException,
                              org.apache.directory.api.ldap.model.cursor.CursorException
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • first

        public boolean first()
                      throws org.apache.directory.api.ldap.model.exception.LdapException,
                             org.apache.directory.api.ldap.model.cursor.CursorException
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • last

        public boolean last()
                     throws org.apache.directory.api.ldap.model.exception.LdapException,
                            org.apache.directory.api.ldap.model.cursor.CursorException
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • previous

        public boolean previous()
                         throws org.apache.directory.api.ldap.model.exception.LdapException,
                                org.apache.directory.api.ldap.model.cursor.CursorException
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • available

        public boolean available()
      • close

        public void close​(Exception cause)
                   throws IOException
        Specified by:
        close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Overrides:
        close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        IOException
      • close

        public void close()
                   throws IOException
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Overrides:
        close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        IOException
      • next

        public boolean next()
      • get

        public org.apache.directory.api.ldap.model.entry.Entry get()