Class RawParser.Result

All Implemented Interfaces:
android.os.Parcelable
Enclosing class:
RawParser

public static final class RawParser.Result extends Parser.Result
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<RawParser.Result> CREATOR
  • Constructor Details

    • Result

      protected Result(long nativeResult)
  • Method Details

    • getRawText

      @NonNull public String getRawText()
      String version of raw OCR result.
    • toString

      public String toString()
      Description copied from class: Parser.Result
      Returns extracted result string.
      Overrides:
      toString in class Parser.Result
      Returns:
      extracted result string or empty string if it does not exist.
    • serializeToByteArray

      @Nullable protected byte[] serializeToByteArray()
      Specified by:
      serializeToByteArray in class Entity.Result
    • deserializeFromByteArray

      protected void deserializeFromByteArray(@NonNull byte[] arr)
      Specified by:
      deserializeFromByteArray in class Entity.Result
    • clone

      public RawParser.Result clone()
      Description copied from class: Entity.Result
      Create a copy of the result. This is required in order to retain the result even after owning entity has mutated it.
      Specified by:
      clone in class Parser.Result
      Returns:
      a copy of the result
    • terminateNative

      protected void terminateNative(long nativeContext)
      Specified by:
      terminateNative in class Entity.Result