@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="WritableStream")
public class WritableStream
extends JsObject
implements Transferable
| Constructor and Description |
|---|
WritableStream()
The WritableStream() constructor creates a new WritableStream object instance.
|
WritableStream(JsObject underlyingSink)
The WritableStream() constructor creates a new WritableStream object instance.
|
WritableStream(JsObject underlyingSink,
QueuingStrategy strategy)
The WritableStream() constructor creates a new WritableStream object instance.
|
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull Promise<java.lang.Void> |
abort()
The abort() method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
@JsNonNull Promise<java.lang.Void> |
abort(java.lang.Object reason)
The abort() method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
@JsNonNull Promise<java.lang.Void> |
close() |
@JsNonNull WritableStreamDefaultWriter |
getWriter()
The getWriter() method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
|
boolean |
locked()
The locked read-only property of the WritableStream interface returns a boolean indicating whether the WritableStream is locked to a writer.
|
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 WritableStream(@Nonnull
JsObject underlyingSink,
@Nonnull
QueuingStrategy strategy)
public WritableStream(@Nonnull
JsObject underlyingSink)
public WritableStream()
@JsProperty(name="locked") public boolean locked()
public @JsNonNull Promise<java.lang.Void> abort(@Nullable java.lang.Object reason)
public @JsNonNull Promise<java.lang.Void> abort()
public @JsNonNull Promise<java.lang.Void> close()
public @JsNonNull WritableStreamDefaultWriter getWriter()