elemental2.dom.TransformStream Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package elemental2.dom;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;
import jsinterop.base.JsPropertyMap;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class TransformStream implements ITransformStream {
@JsType(isNative = true, name = "?", namespace = JsPackage.GLOBAL)
public interface ConstructorReadableStrategyUnionType {
@JsOverlay
static TransformStream.ConstructorReadableStrategyUnionType 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 ConstructorWritableStrategyUnionType {
@JsOverlay
static TransformStream.ConstructorWritableStrategyUnionType 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 TransformStreamWritableStrategyType {
@JsFunction
public interface SizeFn {
double onInvoke(Object p0);
}
@JsOverlay
static TransformStream.TransformStreamWritableStrategyType create() {
return Js.uncheckedCast(JsPropertyMap.of());
}
@JsProperty
double getHighWaterMark();
@JsProperty
TransformStream.TransformStreamWritableStrategyType.SizeFn getSize();
@JsProperty
void setHighWaterMark(double highWaterMark);
@JsProperty
void setSize(TransformStream.TransformStreamWritableStrategyType.SizeFn size);
}
public ReadableStream readable;
public WritableStream writable;
public TransformStream() {}
public TransformStream(
TransformStreamTransformer transformer,
ByteLengthQueuingStrategy writableStrategy,
ByteLengthQueuingStrategy readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
ByteLengthQueuingStrategy writableStrategy,
TransformStream.ConstructorReadableStrategyUnionType readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
ByteLengthQueuingStrategy writableStrategy,
CountQueuingStrategy readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
ByteLengthQueuingStrategy writableStrategy,
TransformStream.TransformStreamWritableStrategyType readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
ByteLengthQueuingStrategy writableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.ConstructorWritableStrategyUnionType writableStrategy,
ByteLengthQueuingStrategy readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.ConstructorWritableStrategyUnionType writableStrategy,
TransformStream.ConstructorReadableStrategyUnionType readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.ConstructorWritableStrategyUnionType writableStrategy,
CountQueuingStrategy readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.ConstructorWritableStrategyUnionType writableStrategy,
TransformStream.TransformStreamWritableStrategyType readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.ConstructorWritableStrategyUnionType writableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
CountQueuingStrategy writableStrategy,
ByteLengthQueuingStrategy readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
CountQueuingStrategy writableStrategy,
TransformStream.ConstructorReadableStrategyUnionType readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
CountQueuingStrategy writableStrategy,
CountQueuingStrategy readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
CountQueuingStrategy writableStrategy,
TransformStream.TransformStreamWritableStrategyType readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
CountQueuingStrategy writableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.TransformStreamWritableStrategyType writableStrategy,
ByteLengthQueuingStrategy readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.TransformStreamWritableStrategyType writableStrategy,
TransformStream.ConstructorReadableStrategyUnionType readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.TransformStreamWritableStrategyType writableStrategy,
CountQueuingStrategy readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.TransformStreamWritableStrategyType writableStrategy,
TransformStream.TransformStreamWritableStrategyType readableStrategy) {}
public TransformStream(
TransformStreamTransformer transformer,
TransformStream.TransformStreamWritableStrategyType writableStrategy) {}
public TransformStream(TransformStreamTransformer transformer) {}
@JsProperty
public native ReadableStream getReadable();
@JsProperty
public native WritableStream getWritable();
@JsProperty
public native void setReadable(ReadableStream readable);
@JsProperty
public native void setWritable(WritableStream writable);
}