@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="ReadableStream")
public class ReadableStream
extends JsObject
implements ImageBufferSource, Transferable
| Constructor and Description |
|---|
ReadableStream()
The ReadableStream() constructor creates and returns a readable stream object from the given handlers.
|
ReadableStream(JsObject underlyingSource)
The ReadableStream() constructor creates and returns a readable stream object from the given handlers.
|
ReadableStream(JsObject underlyingSource,
QueuingStrategy strategy)
The ReadableStream() constructor creates and returns a readable stream object from the given handlers.
|
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull Promise<java.lang.Void> |
cancel()
The cancel() method of the ReadableStream interface cancels the associated stream.
|
@JsNonNull Promise<java.lang.Void> |
cancel(java.lang.Object reason)
The cancel() method of the ReadableStream interface cancels the associated stream.
|
@JsNonNull ReadableStreamReader |
getReader()
The getReader() method of the ReadableStream interface creates a reader and locks the stream to it.
|
@JsNonNull ReadableStreamReader |
getReader(ReadableStreamGetReaderOptions options)
The getReader() method of the ReadableStream interface creates a reader and locks the stream to it.
|
boolean |
locked()
The locked read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
|
@JsNonNull ReadableStream |
pipeThrough(ReadableWritablePair transform)
The pipeThrough() method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
|
@JsNonNull ReadableStream |
pipeThrough(ReadableWritablePair transform,
StreamPipeOptions options)
The pipeThrough() method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
|
@JsNonNull Promise<java.lang.Void> |
pipeTo(WritableStream destination)
The pipeTo() method of the ReadableStream interface pipes the current ReadableStream to a given WritableStream and returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
|
@JsNonNull Promise<java.lang.Void> |
pipeTo(WritableStream destination,
StreamPipeOptions options)
The pipeTo() method of the ReadableStream interface pipes the current ReadableStream to a given WritableStream and returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
|
@JsNonNull JsArray<ReadableStream> |
tee()
The tee() method of the ReadableStream interface tees the current readable stream, returning a two-element array containing the two resulting branches as new ReadableStream instances.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic ReadableStream(@Nonnull
JsObject underlyingSource,
@Nonnull
QueuingStrategy strategy)
public ReadableStream(@Nonnull
JsObject underlyingSource)
public ReadableStream()
@JsProperty(name="locked") public boolean locked()
public @JsNonNull Promise<java.lang.Void> cancel(@Nullable java.lang.Object reason)
public @JsNonNull Promise<java.lang.Void> cancel()
public @JsNonNull ReadableStreamReader getReader(@Nonnull ReadableStreamGetReaderOptions options)
public @JsNonNull ReadableStreamReader getReader()
public @JsNonNull ReadableStream pipeThrough(@Nonnull ReadableWritablePair transform, @Nonnull StreamPipeOptions options)
public @JsNonNull ReadableStream pipeThrough(@Nonnull ReadableWritablePair transform)
public @JsNonNull Promise<java.lang.Void> pipeTo(@Nonnull WritableStream destination, @Nonnull StreamPipeOptions options)
public @JsNonNull Promise<java.lang.Void> pipeTo(@Nonnull WritableStream destination)
public @JsNonNull JsArray<ReadableStream> tee()