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

elemental2.dom.WritableStream Maven / Gradle / Ivy

The newest version!
package elemental2.dom;
import java.lang.Void;
import elemental2.dom.TransformStream;
import elemental2.promise.Promise;
import elemental2.dom.ByteLengthQueuingStrategy;
import elemental2.dom.WritableStreamDefaultWriter;
import jsinterop.base.Js;
import jsinterop.annotations.JsOverlay;
import elemental2.dom.CountQueuingStrategy;
import java.lang.Object;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.dom.WritableStreamSink;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class WritableStream{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface ConstructorQueuingStrategyUnionType{
@JsOverlay
static WritableStream.ConstructorQueuingStrategyUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default ByteLengthQueuingStrategy asByteLengthQueuingStrategy(){
return Js.cast(this);
}
@JsOverlay
default CountQueuingStrategy asCountQueuingStrategy(){
return Js.cast(this);
}
@JsOverlay
default TransformStream.TransformStreamWritableStrategyType asTransformStreamWritableStrategyType(){
return Js.cast(this);
}
@JsOverlay
default boolean isByteLengthQueuingStrategy(){
return (Object)this instanceof ByteLengthQueuingStrategy;
}
@JsOverlay
default boolean isCountQueuingStrategy(){
return (Object)this instanceof CountQueuingStrategy;
}
}
public boolean locked;
public WritableStream(){}
public WritableStream(WritableStreamSink underlyingSink,ByteLengthQueuingStrategy queuingStrategy){}
public WritableStream(WritableStreamSink underlyingSink,WritableStream.ConstructorQueuingStrategyUnionType queuingStrategy){}
public WritableStream(WritableStreamSink underlyingSink,CountQueuingStrategy queuingStrategy){}
public WritableStream(WritableStreamSink underlyingSink,TransformStream.TransformStreamWritableStrategyType queuingStrategy){}
public WritableStream(WritableStreamSink underlyingSink){}
public native Promise abort(Object reason);
public native Promise close();
public native WritableStreamDefaultWriter getWriter();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy