Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/android/database/AbstractWindowedCursor#inhconstants) \| [Fields](https://developer.android.com/reference/android/database/AbstractWindowedCursor#lfields) \| [Inherited Fields](https://developer.android.com/reference/android/database/AbstractWindowedCursor#inhfields) \| [Ctors](https://developer.android.com/reference/android/database/AbstractWindowedCursor#pubctors) \| [Methods](https://developer.android.com/reference/android/database/AbstractWindowedCursor#pubmethods) \| [Protected Methods](https://developer.android.com/reference/android/database/AbstractWindowedCursor#promethods) \| [Inherited Methods](https://developer.android.com/reference/android/database/AbstractWindowedCursor#inhmethods)

# AbstractWindowedCursor

*** ** * ** ***

` public abstract class AbstractWindowedCursor `   
` ` ` extends https://developer.android.com/reference/android/database/AbstractCursor ` ` `

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.database.AbstractCursor](https://developer.android.com/reference/android/database/AbstractCursor) ||
|   | ↳ | android.database.AbstractWindowedCursor |

Known direct subclasses [SQLiteCursor](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor) [SQLiteCursor](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor) A Cursor implementation that exposes results from a query on a `https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase`.   

*** ** * ** ***

A base class for Cursors that store their data in `https://developer.android.com/reference/android/database/CursorWindow`s.

The cursor owns the cursor window it uses. When the cursor is closed, its window is also closed. Likewise, when the window used by the cursor is changed, its old window is closed. This policy of strict ownership ensures that cursor windows are not leaked.

Subclasses are responsible for filling the cursor window with data during `https://developer.android.com/reference/android/database/AbstractCursor#onMove(int,%20int)`, allocating a new cursor window if necessary. During `https://developer.android.com/reference/android/database/AbstractCursor#requery()`, the existing cursor window should be cleared and filled with new data.

If the contents of the cursor change or become invalid, the old window must be closed (because it is owned by the cursor) and set to null.

<br />

## Summary

### Inherited constants

From interface `https://developer.android.com/reference/android/database/Cursor` `int` `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_BLOB`

Value returned by `https://developer.android.com/reference/android/database/Cursor#getType(int)` if the specified column type is blob
`int` `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_FLOAT`

Value returned by `https://developer.android.com/reference/android/database/Cursor#getType(int)` if the specified column type is float
`int` `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER`

Value returned by `https://developer.android.com/reference/android/database/Cursor#getType(int)` if the specified column type is integer
`int` `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_NULL`

Value returned by `https://developer.android.com/reference/android/database/Cursor#getType(int)` if the specified column is null
`int` `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING`

Value returned by `https://developer.android.com/reference/android/database/Cursor#getType(int)` if the specified column type is string

| ### Fields ||
|---|---|
| ` protected https://developer.android.com/reference/android/database/CursorWindow` | `https://developer.android.com/reference/android/database/AbstractWindowedCursor#mWindow` The cursor window owned by this cursor. |

### Inherited fields

From class `https://developer.android.com/reference/android/database/AbstractCursor` ` protected boolean` `https://developer.android.com/reference/android/database/AbstractCursor#mClosed`

*This field was deprecated in API level 23. Use `https://developer.android.com/reference/android/database/AbstractCursor#isClosed()` instead.*
` protected https://developer.android.com/reference/android/content/ContentResolver` `https://developer.android.com/reference/android/database/AbstractCursor#mContentResolver`

*This field was deprecated in API level 23. Do not use.*
` protected int` `https://developer.android.com/reference/android/database/AbstractCursor#mPos`

*This field was deprecated in API level 23. Use `https://developer.android.com/reference/android/database/AbstractCursor#getPosition()` instead.*

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#AbstractWindowedCursor()() ` |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#copyStringToBuffer(int,%20android.database.CharArrayBuffer)(int columnIndex, https://developer.android.com/reference/android/database/CharArrayBuffer buffer) ` Retrieves the requested column text and stores it in the buffer provided. |
| ` byte[]` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getBlob(int)(int columnIndex) ` Returns the value of the requested column as a byte array. |
| ` double` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getDouble(int)(int columnIndex) ` Returns the value of the requested column as a double. |
| ` float` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getFloat(int)(int columnIndex) ` Returns the value of the requested column as a float. |
| ` int` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getInt(int)(int columnIndex) ` Returns the value of the requested column as an int. |
| ` long` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getLong(int)(int columnIndex) ` Returns the value of the requested column as a long. |
| ` short` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getShort(int)(int columnIndex) ` Returns the value of the requested column as a short. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getString(int)(int columnIndex) ` Returns the value of the requested column as a String. |
| ` int` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)(int columnIndex) ` Returns data type of the given column's value. |
| ` https://developer.android.com/reference/android/database/CursorWindow` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#getWindow()() ` If the cursor is backed by a `https://developer.android.com/reference/android/database/CursorWindow`, returns a pre-filled window with the contents of the cursor, otherwise null. |
| ` boolean` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#hasWindow()() ` Returns true if the cursor has an associated cursor window. |
| ` boolean` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#isBlob(int)(int columnIndex) ` *This method was deprecated in API level 15. Use `https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)`* |
| ` boolean` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#isFloat(int)(int columnIndex) ` *This method was deprecated in API level 15. Use `https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)`* |
| ` boolean` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#isLong(int)(int columnIndex) ` *This method was deprecated in API level 15. Use `https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)`* |
| ` boolean` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#isNull(int)(int columnIndex) ` Returns `true` if the value in the indicated column is null. |
| ` boolean` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#isString(int)(int columnIndex) ` *This method was deprecated in API level 15. Use `https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)`* |
| ` void` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#setWindow(android.database.CursorWindow)(https://developer.android.com/reference/android/database/CursorWindow window) ` Sets a new cursor window for the cursor to use. |

| ### Protected methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/database/AbstractWindowedCursor#checkPosition()() ` This function throws CursorIndexOutOfBoundsException if the cursor position is out of bounds. |

### Inherited methods

From class ` https://developer.android.com/reference/android/database/AbstractCursor ` ` void` ` https://developer.android.com/reference/android/database/AbstractCursor#checkPosition()() `

This function throws CursorIndexOutOfBoundsException if the cursor position is out of bounds.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#close()() `

Closes the Cursor, releasing all of its resources and making it completely invalid.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#copyStringToBuffer(int,%20android.database.CharArrayBuffer)(int columnIndex, https://developer.android.com/reference/android/database/CharArrayBuffer buffer) `

Retrieves the requested column text and stores it in the buffer provided.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#deactivate()() `

Deactivates the Cursor, making all calls on it fail until `https://developer.android.com/reference/android/database/Cursor#requery()` is called.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#fillWindow(int,%20android.database.CursorWindow)(int position, https://developer.android.com/reference/android/database/CursorWindow window) `

Copies cursor data into the window.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` byte[]` ` https://developer.android.com/reference/android/database/AbstractCursor#getBlob(int)(int column) `

Returns the value of the requested column as a byte array.
` int` ` https://developer.android.com/reference/android/database/AbstractCursor#getColumnCount()() `

Return total number of columns
` int` ` https://developer.android.com/reference/android/database/AbstractCursor#getColumnIndex(java.lang.String)(https://developer.android.com/reference/java/lang/String columnName) `

Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
` int` ` https://developer.android.com/reference/android/database/AbstractCursor#getColumnIndexOrThrow(java.lang.String)(https://developer.android.com/reference/java/lang/String columnName) `

Returns the zero-based index for the given column name, or throws `https://developer.android.com/reference/java/lang/IllegalArgumentException` if the column doesn't exist.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/database/AbstractCursor#getColumnName(int)(int columnIndex) `

Returns the column name at the given zero-based column index.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/database/AbstractCursor#getColumnNames()() `

Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result.
` abstract int` ` https://developer.android.com/reference/android/database/AbstractCursor#getCount()() `

Returns the numbers of rows in the cursor.
` abstract double` ` https://developer.android.com/reference/android/database/AbstractCursor#getDouble(int)(int column) `

Returns the value of the requested column as a double.
` https://developer.android.com/reference/android/os/Bundle` ` https://developer.android.com/reference/android/database/AbstractCursor#getExtras()() `

Returns a bundle of extra values.
` abstract float` ` https://developer.android.com/reference/android/database/AbstractCursor#getFloat(int)(int column) `

Returns the value of the requested column as a float.
` abstract int` ` https://developer.android.com/reference/android/database/AbstractCursor#getInt(int)(int column) `

Returns the value of the requested column as an int.
` abstract long` ` https://developer.android.com/reference/android/database/AbstractCursor#getLong(int)(int column) `

Returns the value of the requested column as a long.
` https://developer.android.com/reference/android/net/Uri` ` https://developer.android.com/reference/android/database/AbstractCursor#getNotificationUri()() `

Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by `https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)`.
` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/Uri>` ` https://developer.android.com/reference/android/database/AbstractCursor#getNotificationUris()() `

Return the URIs at which notifications of changes in this Cursor's data will be delivered, as previously set by `https://developer.android.com/reference/android/database/Cursor#setNotificationUris(android.content.ContentResolver,%20java.util.List<android.net.Uri>)`.
` final int` ` https://developer.android.com/reference/android/database/AbstractCursor#getPosition()() `

Returns the current position of the cursor in the row set.
` abstract short` ` https://developer.android.com/reference/android/database/AbstractCursor#getShort(int)(int column) `

Returns the value of the requested column as a short.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/database/AbstractCursor#getString(int)(int column) `

Returns the value of the requested column as a String.
` int` ` https://developer.android.com/reference/android/database/AbstractCursor#getType(int)(int column) `

Returns data type of the given column's value.
` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/android/database/AbstractCursor#getUpdatedField(int)(int columnIndex) `

*This method was deprecated in API level 15. Always returns null since Cursors do not support updating rows*
` boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#getWantsAllOnMoveCalls()() `

onMove() will only be called across processes if this method returns true.
` https://developer.android.com/reference/android/database/CursorWindow` ` https://developer.android.com/reference/android/database/AbstractCursor#getWindow()() `

If the cursor is backed by a `https://developer.android.com/reference/android/database/CursorWindow`, returns a pre-filled window with the contents of the cursor, otherwise null.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#isAfterLast()() `

Returns whether the cursor is pointing to the position after the last row.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#isBeforeFirst()() `

Returns whether the cursor is pointing to the position before the first row.
` boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#isClosed()() `

return true if the cursor is closed
` boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#isFieldUpdated(int)(int columnIndex) `

*This method was deprecated in API level 15. Always returns false since Cursors do not support updating rows*
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#isFirst()() `

Returns whether the cursor is pointing to the first row.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#isLast()() `

Returns whether the cursor is pointing to the last row.
` abstract boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#isNull(int)(int column) `

Returns `true` if the value in the indicated column is null.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#move(int)(int offset) `

Move the cursor by a relative amount, forward or backward, from the current position.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#moveToFirst()() `

Move the cursor to the first row.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#moveToLast()() `

Move the cursor to the last row.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#moveToNext()() `

Move the cursor to the next row.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#moveToPosition(int)(int position) `

Move the cursor to an absolute position.
` final boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#moveToPrevious()() `

Move the cursor to the previous row.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#onChange(boolean)(boolean selfChange) `

Subclasses must call this method when they finish committing updates to notify all observers.
` boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#onMove(int,%20int)(int oldPosition, int newPosition) `

This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#registerContentObserver(android.database.ContentObserver)(https://developer.android.com/reference/android/database/ContentObserver observer) `

Register an observer that is called when changes happen to the content backing this cursor.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#registerDataSetObserver(android.database.DataSetObserver)(https://developer.android.com/reference/android/database/DataSetObserver observer) `

Register an observer that is called when changes happen to the contents of the this cursors data set, for example, when the data set is changed via `https://developer.android.com/reference/android/database/Cursor#requery()`, `https://developer.android.com/reference/android/database/Cursor#deactivate()`, or `https://developer.android.com/reference/android/database/Cursor#close()`.
` boolean` ` https://developer.android.com/reference/android/database/AbstractCursor#requery()() `

Performs the query that created the cursor again, refreshing its contents.
` https://developer.android.com/reference/android/os/Bundle` ` https://developer.android.com/reference/android/database/AbstractCursor#respond(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle extras) `

This is an out-of-band way for the user of a cursor to communicate with the cursor.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#setExtras(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle extras) `

Sets a `https://developer.android.com/reference/android/os/Bundle` that will be returned by `https://developer.android.com/reference/android/database/Cursor#getExtras()`.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/android/net/Uri notifyUri) `

Specifies a content URI to watch for changes.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#setNotificationUris(android.content.ContentResolver,%20java.util.List<android.net.Uri>)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/Uri> notifyUris) `

Similar to `https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)`, except this version allows to watch multiple content URIs for changes.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#unregisterContentObserver(android.database.ContentObserver)(https://developer.android.com/reference/android/database/ContentObserver observer) `

Unregister an observer that has previously been registered with this cursor via `https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)`.
` void` ` https://developer.android.com/reference/android/database/AbstractCursor#unregisterDataSetObserver(android.database.DataSetObserver)(https://developer.android.com/reference/android/database/DataSetObserver observer) `

Unregister an observer that has previously been registered with this cursor via `https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)`.
From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/database/CrossProcessCursor ` ` abstract void` ` https://developer.android.com/reference/android/database/CrossProcessCursor#fillWindow(int,%20android.database.CursorWindow)(int position, https://developer.android.com/reference/android/database/CursorWindow window) `

Copies cursor data into the window.
` abstract https://developer.android.com/reference/android/database/CursorWindow` ` https://developer.android.com/reference/android/database/CrossProcessCursor#getWindow()() `

Returns a pre-filled window that contains the data within this cursor.
` abstract boolean` ` https://developer.android.com/reference/android/database/CrossProcessCursor#onMove(int,%20int)(int oldPosition, int newPosition) `

This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have.
From interface ` https://developer.android.com/reference/android/database/Cursor ` ` abstract void` ` https://developer.android.com/reference/android/database/Cursor#close()() `

Closes the Cursor, releasing all of its resources and making it completely invalid.
` abstract void` ` https://developer.android.com/reference/android/database/Cursor#copyStringToBuffer(int,%20android.database.CharArrayBuffer)(int columnIndex, https://developer.android.com/reference/android/database/CharArrayBuffer buffer) `

Retrieves the requested column text and stores it in the buffer provided.
` abstract void` ` https://developer.android.com/reference/android/database/Cursor#deactivate()() `

*This method was deprecated in API level 16. Since `https://developer.android.com/reference/android/database/Cursor#requery()` is deprecated, so too is this.*
` abstract byte[]` ` https://developer.android.com/reference/android/database/Cursor#getBlob(int)(int columnIndex) `

Returns the value of the requested column as a byte array.
` abstract int` ` https://developer.android.com/reference/android/database/Cursor#getColumnCount()() `

Return total number of columns
` abstract int` ` https://developer.android.com/reference/android/database/Cursor#getColumnIndex(java.lang.String)(https://developer.android.com/reference/java/lang/String columnName) `

Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
` abstract int` ` https://developer.android.com/reference/android/database/Cursor#getColumnIndexOrThrow(java.lang.String)(https://developer.android.com/reference/java/lang/String columnName) `

Returns the zero-based index for the given column name, or throws `https://developer.android.com/reference/java/lang/IllegalArgumentException` if the column doesn't exist.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/database/Cursor#getColumnName(int)(int columnIndex) `

Returns the column name at the given zero-based column index.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/database/Cursor#getColumnNames()() `

Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result.
` abstract int` ` https://developer.android.com/reference/android/database/Cursor#getCount()() `

Returns the numbers of rows in the cursor.
` abstract double` ` https://developer.android.com/reference/android/database/Cursor#getDouble(int)(int columnIndex) `

Returns the value of the requested column as a double.
` abstract https://developer.android.com/reference/android/os/Bundle` ` https://developer.android.com/reference/android/database/Cursor#getExtras()() `

Returns a bundle of extra values.
` abstract float` ` https://developer.android.com/reference/android/database/Cursor#getFloat(int)(int columnIndex) `

Returns the value of the requested column as a float.
` abstract int` ` https://developer.android.com/reference/android/database/Cursor#getInt(int)(int columnIndex) `

Returns the value of the requested column as an int.
` abstract long` ` https://developer.android.com/reference/android/database/Cursor#getLong(int)(int columnIndex) `

Returns the value of the requested column as a long.
` abstract https://developer.android.com/reference/android/net/Uri` ` https://developer.android.com/reference/android/database/Cursor#getNotificationUri()() `

Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by `https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)`.
` default https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/Uri>` ` https://developer.android.com/reference/android/database/Cursor#getNotificationUris()() `

Return the URIs at which notifications of changes in this Cursor's data will be delivered, as previously set by `https://developer.android.com/reference/android/database/Cursor#setNotificationUris(android.content.ContentResolver,%20java.util.List<android.net.Uri>)`.
` abstract int` ` https://developer.android.com/reference/android/database/Cursor#getPosition()() `

Returns the current position of the cursor in the row set.
` abstract short` ` https://developer.android.com/reference/android/database/Cursor#getShort(int)(int columnIndex) `

Returns the value of the requested column as a short.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/database/Cursor#getString(int)(int columnIndex) `

Returns the value of the requested column as a String.
` abstract int` ` https://developer.android.com/reference/android/database/Cursor#getType(int)(int columnIndex) `

Returns data type of the given column's value.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#getWantsAllOnMoveCalls()() `

onMove() will only be called across processes if this method returns true.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#isAfterLast()() `

Returns whether the cursor is pointing to the position after the last row.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#isBeforeFirst()() `

Returns whether the cursor is pointing to the position before the first row.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#isClosed()() `

return true if the cursor is closed
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#isFirst()() `

Returns whether the cursor is pointing to the first row.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#isLast()() `

Returns whether the cursor is pointing to the last row.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#isNull(int)(int columnIndex) `

Returns `true` if the value in the indicated column is null.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#move(int)(int offset) `

Move the cursor by a relative amount, forward or backward, from the current position.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#moveToFirst()() `

Move the cursor to the first row.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#moveToLast()() `

Move the cursor to the last row.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#moveToNext()() `

Move the cursor to the next row.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#moveToPosition(int)(int position) `

Move the cursor to an absolute position.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#moveToPrevious()() `

Move the cursor to the previous row.
` abstract void` ` https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)(https://developer.android.com/reference/android/database/ContentObserver observer) `

Register an observer that is called when changes happen to the content backing this cursor.
` abstract void` ` https://developer.android.com/reference/android/database/Cursor#registerDataSetObserver(android.database.DataSetObserver)(https://developer.android.com/reference/android/database/DataSetObserver observer) `

Register an observer that is called when changes happen to the contents of the this cursors data set, for example, when the data set is changed via `https://developer.android.com/reference/android/database/Cursor#requery()`, `https://developer.android.com/reference/android/database/Cursor#deactivate()`, or `https://developer.android.com/reference/android/database/Cursor#close()`.
` abstract boolean` ` https://developer.android.com/reference/android/database/Cursor#requery()() `

*This method was deprecated in API level 15. Don't use this. Just request a new cursor, so you can do this asynchronously and update your list view once the new cursor comes back.*
` abstract https://developer.android.com/reference/android/os/Bundle` ` https://developer.android.com/reference/android/database/Cursor#respond(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle extras) `

This is an out-of-band way for the user of a cursor to communicate with the cursor.
` abstract void` ` https://developer.android.com/reference/android/database/Cursor#setExtras(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle extras) `

Sets a `https://developer.android.com/reference/android/os/Bundle` that will be returned by `https://developer.android.com/reference/android/database/Cursor#getExtras()`.
` abstract void` ` https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/android/net/Uri uri) `

Register to watch a content URI for changes.
` default void` ` https://developer.android.com/reference/android/database/Cursor#setNotificationUris(android.content.ContentResolver,%20java.util.List<android.net.Uri>)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/Uri> uris) `

Similar to `https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)`, except this version allows to watch multiple content URIs for changes.
` abstract void` ` https://developer.android.com/reference/android/database/Cursor#unregisterContentObserver(android.database.ContentObserver)(https://developer.android.com/reference/android/database/ContentObserver observer) `

Unregister an observer that has previously been registered with this cursor via `https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)`.
` abstract void` ` https://developer.android.com/reference/android/database/Cursor#unregisterDataSetObserver(android.database.DataSetObserver)(https://developer.android.com/reference/android/database/DataSetObserver observer) `

Unregister an observer that has previously been registered with this cursor via `https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)`.
From interface ` https://developer.android.com/reference/java/io/Closeable ` ` abstract void` ` https://developer.android.com/reference/java/io/Closeable#close()() `

Closes this stream and releases any system resources associated with it.
From interface ` https://developer.android.com/reference/java/lang/AutoCloseable ` ` abstract void` ` https://developer.android.com/reference/java/lang/AutoCloseable#close()() `

Closes this resource, relinquishing any underlying resources.

## Fields

### mWindow

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected CursorWindow mWindow
```

The cursor window owned by this cursor.

<br />

## Public constructors

### AbstractWindowedCursor

```
public AbstractWindowedCursor ()
```

<br />

<br />

## Public methods

### copyStringToBuffer

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void copyStringToBuffer (int columnIndex, 
                CharArrayBuffer buffer)
```

Retrieves the requested column text and stores it in the buffer provided. If the buffer size is not sufficient, a new char buffer will be allocated and assigned to CharArrayBuffer.data

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. if the target column is null, return buffer. Value is 0 or greater <br /> |
| `buffer` | `CharArrayBuffer`: the buffer to copy the text into. <br /> |

### getBlob

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public byte[] getBlob (int columnIndex)
```

Returns the value of the requested column as a byte array.

The result and whether this method throws an exception when the column value is null or the column type is not a blob type is implementation-defined.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `byte[]` | the value of that column as a byte array. <br /> |

### getDouble

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getDouble (int columnIndex)
```

Returns the value of the requested column as a double.

The result and whether this method throws an exception when the column value is null, the column type is not a floating-point type, or the floating-point value is not representable as a `double` value is implementation-defined.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `double` | the value of that column as a double. <br /> |

### getFloat

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getFloat (int columnIndex)
```

Returns the value of the requested column as a float.

The result and whether this method throws an exception when the column value is null, the column type is not a floating-point type, or the floating-point value is not representable as a `float` value is implementation-defined.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `float` | the value of that column as a float. <br /> |

### getInt

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getInt (int columnIndex)
```

Returns the value of the requested column as an int.

The result and whether this method throws an exception when the column value is null, the column type is not an integral type, or the integer value is outside the range \[`Integer.MIN_VALUE`, `Integer.MAX_VALUE`\] is implementation-defined.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `int` | the value of that column as an int. <br /> |

### getLong

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getLong (int columnIndex)
```

Returns the value of the requested column as a long.

The result and whether this method throws an exception when the column value is null, the column type is not an integral type, or the integer value is outside the range \[`Long.MIN_VALUE`, `Long.MAX_VALUE`\] is implementation-defined.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `long` | the value of that column as a long. <br /> |

### getShort

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public short getShort (int columnIndex)
```

Returns the value of the requested column as a short.

The result and whether this method throws an exception when the column value is null, the column type is not an integral type, or the integer value is outside the range \[`Short.MIN_VALUE`, `Short.MAX_VALUE`\] is implementation-defined.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `short` | the value of that column as a short. <br /> |

### getString

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getString (int columnIndex)
```

Returns the value of the requested column as a String.

The result and whether this method throws an exception when the column value is null or the column type is not a string type is implementation-defined.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the value of that column as a String. <br /> |

### getType

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getType (int columnIndex)
```

Returns data type of the given column's value. The preferred type of the column is returned but the data may be converted to other types as documented in the get-type methods such as `https://developer.android.com/reference/android/database/Cursor#getInt(int)`, `https://developer.android.com/reference/android/database/Cursor#getFloat(int)` etc.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `int` | column value type. Value is one of the following: - `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_NULL` - `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER` - `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_FLOAT` - `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING` - `https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_BLOB` |

### getWindow

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CursorWindow getWindow ()
```

If the cursor is backed by a `https://developer.android.com/reference/android/database/CursorWindow`, returns a pre-filled window with the contents of the cursor, otherwise null.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/database/CursorWindow` | The pre-filled window that backs this cursor, or null if none. <br /> |

### hasWindow

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasWindow ()
```

Returns true if the cursor has an associated cursor window.

<br />

| Returns ||
|---|---|
| `boolean` | True if the cursor has an associated cursor window. <br /> |

### isBlob

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isBlob (int columnIndex)
```

<br />

**This method was deprecated in API level 15.**   

Use `https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)`

<br />

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int` <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |

### isFloat

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isFloat (int columnIndex)
```

<br />

**This method was deprecated in API level 15.**   

Use `https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)`

<br />

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int` <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |

### isLong

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isLong (int columnIndex)
```

<br />

**This method was deprecated in API level 15.**   

Use `https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)`

<br />

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int` <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |

### isNull

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isNull (int columnIndex)
```

Returns `true` if the value in the indicated column is null.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the zero-based index of the target column. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `boolean` | whether the column value is null. <br /> |

### isString

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isString (int columnIndex)
```

<br />

**This method was deprecated in API level 15.**   

Use `https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int)`

<br />

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int` <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |

### setWindow

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setWindow (CursorWindow window)
```

Sets a new cursor window for the cursor to use.

The cursor takes ownership of the provided cursor window; the cursor window will be closed when the cursor is closed or when the cursor adopts a new cursor window.

If the cursor previously had a cursor window, then it is closed when the new cursor window is assigned.

<br />

<br />

| Parameters ||
|---|---|
| `window` | `CursorWindow`: The new cursor window, typically a remote cursor window. <br /> |

## Protected methods

### checkPosition

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void checkPosition ()
```

This function throws CursorIndexOutOfBoundsException if the cursor position is out of bounds. Subclass implementations of the get functions should call this before attempting to retrieve data.

<br />