ContentSpan Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. ContentSpan
- com.
Implements
public final class ContentSpan
implements JsonSerializable<ContentSpan>
Position of the element in markdown, specified as a character offset and length.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
| int |
getLength()
Get the length property: Length of the element in markdown, specified in characters. |
| int |
getOffset()
Get the offset property: Starting position (0-indexed) of the element in markdown, specified in characters. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ContentSpan fromJson(JsonReader jsonReader)
Reads an instance of ContentSpan from the JsonReader.
Parameters:
Returns:
Throws:
getLength
public int getLength()
Get the length property: Length of the element in markdown, specified in characters.
Returns:
getOffset
public int getOffset()
Get the offset property: Starting position (0-indexed) of the element in markdown, specified in characters.
Returns: