public class PositionQuery extends Query
NativeObject.InitializerdefaultInit, LIFECYCLE, ownsHandle| Constructor and Description |
|---|
PositionQuery(Format format)
Constructs a new query stream position query object.
|
PositionQuery(NativeObject.Initializer init) |
| Modifier and Type | Method and Description |
|---|---|
Format |
getFormat()
Gets the
Format of this position query. |
long |
getPosition()
Gets the position in terms of the
Format of the query. |
void |
setPosition(Format format,
long position)
Answers a position query by setting the requested value in the given format.
|
java.lang.String |
toString()
Gets the position as a user-readable string.
|
getStructure, makeWritabledisposeNativeHandle, isWritable, makeWritable, ref, unrefclassFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectForpublic PositionQuery(NativeObject.Initializer init)
public void setPosition(Format format, long position)
format - the requested Formatposition - the position to set in the answerpublic Format getFormat()
Format of this position query.public long getPosition()
Format of the query.public java.lang.String toString()
toString in class NativeObject