目录

class info
com.huawei.hms.mlsdk.document.MLDocument.Interval
Represents a text interval. Three attributes are included:
1. Space;
2. Newline character;
3. Unknown interval type.

Constant Summary

TypeNameDesc
intNEW_LINE_CHARACTERNewline character.
intSPACESpace.
intOTHERUnknown interval type.

Public Method Summary

Return typeMethod name
intgetIntervalType()
booleanisTextFollowed()

Constants

Constant
public static final int NEW_LINE_CHARACTER
Newline character.
Constant value: 8
Constant
public static final int SPACE
Space.
Constant value: 6
Constant
public static final int OTHER
Unknown interval type.
Constant value: 5

Public Methods

Method
public int getIntervalType()
Obtains the type of the detected text interval.

Return

Typedesc
intReturns the text interval type. Options:
SPACE (space);
NEW_LINE_CHARACTER (newline character);
OTHER (unknown).
Method
public boolean isTextFollowed()
Determines whether there is text after the text interval.

Return

Typedesc
boolean

true: There is text after the text interval;

false: There is no text after the text interval.