EventPosition.fromOffset 方法

定义

重载

fromOffset(String offset)

Creates a position at the given offset. The specified event will not be included. Instead, the next event is returned.

fromOffset(String offset, boolean inclusiveFlag)

Creates a position at the given offset.

fromOffset(String offset)

Creates a position at the given offset. The specified event will not be included. Instead, the next event is returned.

public static EventPosition fromOffset(String offset)

参数

offset
String

is the byte offset of the event.

返回

fromOffset(String offset, boolean inclusiveFlag)

Creates a position at the given offset.

public static EventPosition fromOffset(String offset, boolean inclusiveFlag)

参数

offset
String

is the byte offset of the event.

inclusiveFlag
boolean

will include the specified event when set to true; otherwise, the next event is returned.

返回

适用于