Class RawParser.Result
java.lang.Object
com.microblink.photopay.entities.Entity.Result
com.microblink.photopay.entities.parsers.Parser.Result
com.microblink.photopay.entities.parsers.raw.RawParser.Result
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- RawParser
-
Nested Class Summary
Nested classes/interfaces inherited from class com.microblink.photopay.entities.parsers.Parser.Result
Parser.Result.State -
Field Summary
FieldsFields inherited from class com.microblink.photopay.entities.Entity.Result
mOwnerFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a copy of the result.protected voiddeserializeFromByteArray(byte[] arr) String version of raw OCR result.protected byte[]protected voidterminateNative(long nativeContext) toString()Returns extracted result string.Methods inherited from class com.microblink.photopay.entities.parsers.Parser.Result
getResultState, isEmptyMethods inherited from class com.microblink.photopay.entities.Entity.Result
describeContents, finalize, getNativeContext, readFromParcel, writeToParcel
-
Field Details
-
CREATOR
-
-
Constructor Details
-
Result
protected Result(long nativeResult)
-
-
Method Details
-
getRawText
String version of raw OCR result. -
toString
Description copied from class:Parser.ResultReturns extracted result string.- Overrides:
toStringin classParser.Result- Returns:
- extracted result string or empty string if it does not exist.
-
serializeToByteArray
@Nullable protected byte[] serializeToByteArray()- Specified by:
serializeToByteArrayin classEntity.Result
-
deserializeFromByteArray
protected void deserializeFromByteArray(@NonNull byte[] arr) - Specified by:
deserializeFromByteArrayin classEntity.Result
-
clone
Description copied from class:Entity.ResultCreate a copy of the result. This is required in order to retain the result even after owning entity has mutated it.- Specified by:
clonein classParser.Result- Returns:
- a copy of the result
-
terminateNative
protected void terminateNative(long nativeContext) - Specified by:
terminateNativein classEntity.Result
-