@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="WritableStream")
public class WritableStream
extends java.lang.Object
implements Transferable
| Constructor and Description |
|---|
WritableStream()
The WritableStream() constructor creates a new WritableStream object instance.
|
WritableStream(java.lang.Object underlyingSink)
The WritableStream() constructor creates a new WritableStream object instance.
|
WritableStream(java.lang.Object underlyingSink,
QueuingStrategy strategy)
The WritableStream() constructor creates a new WritableStream object instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
Promise<java.lang.Void> |
close() |
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.
|
public WritableStream(@Nonnull
java.lang.Object underlyingSink,
@Nonnull
QueuingStrategy strategy)
public WritableStream(@Nonnull
java.lang.Object underlyingSink)
public WritableStream()
@JsProperty(name="locked") public boolean locked()
@Nonnull public Promise<java.lang.Void> abort(@Nullable java.lang.Object reason)
@Nonnull public Promise<java.lang.Void> abort()
@Nonnull public Promise<java.lang.Void> close()
@Nonnull public WritableStreamDefaultWriter getWriter()