StrokeInputBatch.Companion


public static class StrokeInputBatch.Companion


Summary

Extension functions

static final @NonNull ImmutableStrokeInputBatch

Read a serialized CodedStrokeInputBatch from the given InputStream and parse it into a ImmutableStrokeInputBatch, throwing an exception if parsing or validation was not successful.

Extension functions

StrokeInputBatchExtensions.decode

public static final @NonNull ImmutableStrokeInputBatch StrokeInputBatchExtensions.decode(
    @NonNull StrokeInputBatch.Companion receiver,
    @NonNull InputStream input
)

Read a serialized CodedStrokeInputBatch from the given InputStream and parse it into a ImmutableStrokeInputBatch, throwing an exception if parsing or validation was not successful. Java callers should use StrokeInputBatchSerialization.decode instead.

Parameters
@NonNull InputStream input

InputStream providing gzip-compressed ink.proto.CodedStrokeInputBatch binary proto messages, the same as written to OutputStream by encode.

Throws
java.io.IOException

if gzip-format bytes cannot be read from input.

kotlin.IllegalArgumentException

input does not provide a valid ink.proto.CodedStrokeInputBatch proto message, or the corresponding StrokeInputBatch is invalid.