DocumentSpan Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. DocumentSpan
- com.
Implements
public final class DocumentSpan
implements JsonSerializable<DocumentSpan>
Contiguous region of the concatenated content property, specified as an offset and length.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
int |
getLength()
Get the length property: Number of characters in the content represented by the span. |
int |
getOffset()
Get the offset property: Zero-based index of the content represented by the span. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentSpan fromJson(JsonReader jsonReader)
Reads an instance of DocumentSpan from the JsonReader.
Parameters:
Returns:
Throws:
getLength
public int getLength()
Get the length property: Number of characters in the content represented by the span.
Returns:
getOffset
public int getOffset()
Get the offset property: Zero-based index of the content represented by the span.
Returns: