elemental2.dom.ReadableStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jacline-elemental2-dom Show documentation
Show all versions of jacline-elemental2-dom Show documentation
Thin Java abstractions for the standard built-in objects for
Javascript.
The newest version!
package elemental2.dom;
import elemental2.dom.WritableStream;
import elemental2.dom.ReadableStreamBYOBReader;
import java.lang.Void;
import elemental2.dom.ITransformStream;
import elemental2.dom.ReadableStreamSource;
import elemental2.dom.TransformStream;
import elemental2.promise.Promise;
import elemental2.dom.ReadableStreamIteratorOptions;
import elemental2.dom.ByteLengthQueuingStrategy;
import jsinterop.base.JsPropertyMap;
import elemental2.core.JsArray;
import elemental2.core.AsyncIterator;
import jsinterop.annotations.JsProperty;
import jsinterop.base.Js;
import jsinterop.annotations.JsOverlay;
import elemental2.dom.CountQueuingStrategy;
import elemental2.dom.PipeOptions;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.dom.ReadableStreamDefaultReader;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class ReadableStream{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface ConstructorQueuingStrategyUnionType{
@JsOverlay
static ReadableStream.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;
}
}
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface GetReaderOptionsType{
@JsOverlay
static ReadableStream.GetReaderOptionsType create(){
return Js.uncheckedCast(JsPropertyMap.of());
}
@JsProperty
String getMode();
@JsProperty
void setMode(String mode);
}
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface GetReaderUnionType{
@JsOverlay
static ReadableStream.GetReaderUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default ReadableStreamBYOBReader asReadableStreamBYOBReader(){
return Js.cast(this);
}
@JsOverlay
default ReadableStreamDefaultReader asReadableStreamDefaultReader(){
return Js.cast(this);
}
}
public boolean locked;
public ReadableStream(){}
public ReadableStream(ReadableStreamSource underlyingSource,ByteLengthQueuingStrategy queuingStrategy){}
public ReadableStream(ReadableStreamSource underlyingSource,ReadableStream.ConstructorQueuingStrategyUnionType queuingStrategy){}
public ReadableStream(ReadableStreamSource underlyingSource,CountQueuingStrategy queuingStrategy){}
public ReadableStream(ReadableStreamSource underlyingSource,TransformStream.TransformStreamWritableStrategyType queuingStrategy){}
public ReadableStream(ReadableStreamSource underlyingSource){}
public native Promise cancel(Object reason);
public native AsyncIterator getIterator();
public native AsyncIterator getIterator(ReadableStreamIteratorOptions options);
public native ReadableStream.GetReaderUnionType getReader();
public native ReadableStream.GetReaderUnionType getReader(ReadableStream.GetReaderOptionsType options);
public native ReadableStream pipeThrough(ITransformStream transform,PipeOptions options);
public native ReadableStream pipeThrough(ITransformStream transform);
public native Promise pipeTo(WritableStream dest,PipeOptions options);
public native Promise pipeTo(WritableStream dest);
public native JsArray> tee();
}