TransformStream extension type
The TransformStream
interface of the
Streams API
represents a concrete implementation of the
pipe chain
transform stream concept.
It may be passed to the ReadableStream.pipeThrough method in order to transform a stream of data from one format into another. For example, it might be used to decode (or encode) video frames, decompress data, or convert the stream from XML to JSON.
A transformation algorithm may be provided as an optional argument to the object constructor. If not supplied, data is not modified when piped through the stream.
TransformStream
is a
transferable object.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Constructors
- TransformStream([JSObject transformer, QueuingStrategy writableStrategy, QueuingStrategy readableStrategy])
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- readable → ReadableStream
-
The
readable
read-only property of the TransformStream interface returns the ReadableStream instance controlled by thisTransformStream
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- writable → WritableStream
-
The
writable
read-only property of the TransformStream interface returns the WritableStream instance controlled by thisTransformStream
.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited