public class PositionQuery extends Query
NativeObject.Initializer
GTYPE_NAME
defaultInit, 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.
|
String |
toString()
Gets the position as a user-readable string.
|
getStructure, makeWritable
disposeNativeHandle, isWritable, makeWritable, ref, unref
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
public PositionQuery(NativeObject.Initializer init)
public void setPosition(Format format, long position)
format
- the requested Format
position
- the position to set in the answerpublic Format getFormat()
Format
of this position query.public long getPosition()
Format
of the query.public String toString()
toString
in class NativeObject
Copyright © 2016. All rights reserved.