|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Positionable
A data source that is positionable using longs or
Locators and has an associated SourceId.
| Method Summary | |
|---|---|
SourceId |
id()
Returns the current SourceId associated with the
data. |
Locator |
location()
Returns the current position in the data as a Locator. |
long |
position()
Returns the current position in the data as an long. |
void |
seek(Locator locator)
Positions the data source at the specified locator. |
void |
seek(long position)
Positions the data source at the specified position. |
| Method Detail |
|---|
SourceId id()
throws IOException
SourceId associated with the
data. That is, the SourceId of the Locator
that will currently be returned by the location() method.
IOException
Locator location()
throws IOException
Locator.
IOException - if an I/O error occurred.
long position()
throws IOException
long.
IOException - if an I/O error occurred.
void seek(Locator locator)
throws IOException,
InvalidSourceIdException,
OutOfBoundsException
IOException - if an I/O error occurred.
InvalidSourceIdException
OutOfBoundsException
void seek(long position)
throws IOException,
OutOfBoundsException
IOException - if an I/O error occurred.
OutOfBoundsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||