StrokeInputBatchExtensions
public final class StrokeInputBatchExtensions
Summary
Public methods |
|
|---|---|
static final @NonNull ImmutableStrokeInputBatch |
decode(Read a serialized CodedStrokeInputBatch from the given |
static final void |
encode(@NonNull StrokeInputBatch receiver, @NonNull OutputStream output)Write a gzip-compressed |
Public methods
decode
public static final @NonNull ImmutableStrokeInputBatch 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 |
|
| Returns | |
|---|---|
@NonNull ImmutableStrokeInputBatch |
The |
| Throws | |
|---|---|
java.io.IOException |
if gzip-format bytes cannot be read from |
kotlin.IllegalArgumentException |
|
encode
public static final void encode(@NonNull StrokeInputBatch receiver, @NonNull OutputStream output)
Write a gzip-compressed ink.proto.CodedStrokeInputBatch binary proto message representing the StrokeInputBatch to the given OutputStream.