限定符和类型 | 方法和说明 |
---|---|
void |
advance()
Move the cursor position ahead one character.
|
int |
compare(java.lang.Object that)
Compare one reference to another.
|
Cursor |
dup()
Make a new cursor just like this one.
|
Page |
getPage()
Get this cursor's page.
|
int |
getPosition()
Get the position of this cursor.
|
void |
retreat()
Move the cursor position back one character.
|
void |
setPosition(int position)
Set the position of this cursor.
|
java.lang.String |
toString()
Return a string representation of this cursor
|
public Cursor(Page page, int offset)
Cursor
from the page and position given.page
- The page this cursor is on.offset
- The character offset within the page.public Page getPage()
public int getPosition()
public void setPosition(int position)
position
- The new cursor position.public void advance()
public void retreat()
public Cursor dup()
this
one is,
and referring to the same page.public java.lang.String toString()
toString
在类中 java.lang.Object