S - T - public class ConvertingCursor<S,T> extends Object implements Cursor<T>
ConvertingCursor wraps a given cursor and applies given Converter to items prior to returning them.
This allows to easily perform required conversion whereas the underlying implementation may still work with its
native types.| Constructor and Description |
|---|
ConvertingCursor(Cursor<S> cursor,
Converter<S,T> converter) |
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getCursorId()
CursorgetCursorId in interface Cursor<T>public boolean isClosed()
public Cursor<T> open()
Cursorpublic long getPosition()
getPosition in interface Cursor<T>