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

net.java.html.lib.node.NodeJS.ReadableStream Maven / Gradle / Ivy

The newest version!
package net.java.html.lib.node.NodeJS;
public class ReadableStream extends net.java.html.lib.node.NodeJS.EventEmitter {
  protected ReadableStream(net.java.html.lib.Objs.Constructor c, java.lang.Object js) {
    super(c, js);
  }
  private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
    $Constructor() {
      super(ReadableStream.class);
    }
    @Override
    public ReadableStream create(java.lang.Object obj) {
      return obj == null ? null : new ReadableStream(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static ReadableStream $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  public net.java.html.lib.Objs.Property readable = net.java.html.lib.Objs.Property.create(this, java.lang.Boolean.class, "readable");
  public java.lang.Boolean readable() { return readable.get(); }
  public void pause() {
    $Typings$.pause$47($js(this));
  }
  public  T pipe(T destination, net.java.html.lib.Objs options) {
    return (T)$Typings$.pipe$48($js(this), /* FirstTypeNode*/$js(destination), /* TypeLiteral*/$js(options));
  }
  public  T pipe(T destination) {
    return (T)$Typings$.pipe$49($js(this), /* FirstTypeNode*/$js(destination));
  }
  public net.java.html.lib.Union.A2 read(double size) {
    return (net.java.html.lib.Union.A2)net.java.html.lib.Union.$as($Typings$.read$50($js(this), size));
  }
  public net.java.html.lib.Union.A2 read() {
    return (net.java.html.lib.Union.A2)net.java.html.lib.Union.$as($Typings$.read$51($js(this)));
  }
  public void resume() {
    $Typings$.resume$52($js(this));
  }
  public void setEncoding(java.lang.String encoding) {
    $Typings$.setEncoding$53($js(this), encoding);
  }
  public  void unpipe(T destination) {
    $Typings$.unpipe$54($js(this), /* FirstTypeNode*/$js(destination));
  }
  public  void unpipe() {
    $Typings$.unpipe$55($js(this));
  }
  public void unshift(java.lang.String chunk) {
    $Typings$.unshift$56($js(this), chunk);
  }
  public void unshift(net.java.html.lib.node.Buffer chunk) {
    $Typings$.unshift$57($js(this), /* FirstTypeNode*/$js(chunk));
  }
  public net.java.html.lib.node.NodeJS.ReadableStream wrap(net.java.html.lib.node.NodeJS.ReadableStream oldStream) {
    return (net.java.html.lib.node.NodeJS.ReadableStream)net.java.html.lib.node.NodeJS.ReadableStream.$as($Typings$.wrap$58($js(this), /* FirstTypeNode*/$js(oldStream)));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy