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

net.java.html.lib.node.stream.Readable Maven / Gradle / Ivy

The newest version!
package net.java.html.lib.node.stream;
public class Readable extends net.java.html.lib.node.events.EventEmitter {
  protected Readable(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(Readable.class);
    }
    @Override
    public Readable create(java.lang.Object obj) {
      return obj == null ? null : new Readable(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static Readable $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 Readable(net.java.html.lib.node.stream.ReadableOptions opts) {
    this(Readable.$AS, $Typings$.new$77(/* FirstTypeNode*/$js(opts)));
  }
  public Readable() {
    this(Readable.$AS, $Typings$.new$78());
  }
  public void _read(double size) {
    $Typings$._read$79($js(this), size);
  }
  public java.lang.Object read(double size) {
    return net.java.html.lib.Objs.$as(java.lang.Object.class, $Typings$.read$80($js(this), size));
  }
  public java.lang.Object read() {
    return net.java.html.lib.Objs.$as(java.lang.Object.class, $Typings$.read$81($js(this)));
  }
  public void setEncoding(java.lang.String encoding) {
    $Typings$.setEncoding$82($js(this), encoding);
  }
  public void pause() {
    $Typings$.pause$83($js(this));
  }
  public void resume() {
    $Typings$.resume$84($js(this));
  }
  public  T pipe(T destination, net.java.html.lib.Objs options) {
    return (T)$Typings$.pipe$85($js(this), /* FirstTypeNode*/$js(destination), /* TypeLiteral*/$js(options));
  }
  public  T pipe(T destination) {
    return (T)$Typings$.pipe$86($js(this), /* FirstTypeNode*/$js(destination));
  }
  public  void unpipe(T destination) {
    $Typings$.unpipe$87($js(this), /* FirstTypeNode*/$js(destination));
  }
  public  void unpipe() {
    $Typings$.unpipe$88($js(this));
  }
  public void unshift(java.lang.Object chunk) {
    $Typings$.unshift$89($js(this), /* AnyKeyword*/$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$90($js(this), /* FirstTypeNode*/$js(oldStream)));
  }
  public java.lang.Boolean push(java.lang.Object chunk, java.lang.String encoding) {
    return $Typings$.push$91($js(this), /* AnyKeyword*/$js(chunk), encoding);
  }
  public java.lang.Boolean push(java.lang.Object chunk) {
    return $Typings$.push$92($js(this), /* AnyKeyword*/$js(chunk));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy