All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.web.streams.GenericTransformStream Maven / Gradle / Ivy

package js.web.streams;

import js.lang.Any;
import org.teavm.jso.JSProperty;


public interface GenericTransformStream extends Any {
    /**
     * Returns a readable stream whose chunks are strings resulting from running encoding's decoder on the chunks written to writable.
     */
    @JSProperty
    ReadableStream getReadable();

    /**
     * Returns a writable stream which accepts BufferSource chunks and runs them through encoding's decoder before making them available to readable.
     * 

* Typically this will be used via the pipeThrough() method on a ReadableStream source. *

* ``` * var decoder = new TextDecoderStream(encoding); * byteReadable * .pipeThrough(decoder) * .pipeTo(textWritable); * ``` *

* If the error mode is "fatal" and encoding's decoder returns error, both readable and writable will be errored with a TypeError. */ @JSProperty WritableStream getWritable(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy