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

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

The newest version!
package net.java.html.lib.node.stream;
public class Transform extends net.java.html.lib.node.events.EventEmitter {
  protected Transform(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(Transform.class);
    }
    @Override
    public Transform create(java.lang.Object obj) {
      return obj == null ? null : new Transform(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static Transform $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 net.java.html.lib.Objs.Property writable = net.java.html.lib.Objs.Property.create(this, java.lang.Boolean.class, "writable");
  public java.lang.Boolean writable() { return writable.get(); }
  public Transform(net.java.html.lib.node.stream.TransformOptions opts) {
    this(Transform.$AS, $Typings$.new$121(/* FirstTypeNode*/$js(opts)));
  }
  public Transform() {
    this(Transform.$AS, $Typings$.new$122());
  }
  public void _transform(java.lang.Object chunk, java.lang.String encoding, net.java.html.lib.Function callback) {
    $Typings$._transform$123($js(this), /* AnyKeyword*/$js(chunk), encoding, /* FirstTypeNode*/$js(callback));
  }
  public void _flush(net.java.html.lib.Function callback) {
    $Typings$._flush$124($js(this), /* FirstTypeNode*/$js(callback));
  }
  public java.lang.Object read(double size) {
    return net.java.html.lib.Objs.$as(java.lang.Object.class, $Typings$.read$125($js(this), size));
  }
  public java.lang.Object read() {
    return net.java.html.lib.Objs.$as(java.lang.Object.class, $Typings$.read$126($js(this)));
  }
  public void setEncoding(java.lang.String encoding) {
    $Typings$.setEncoding$127($js(this), encoding);
  }
  public void pause() {
    $Typings$.pause$128($js(this));
  }
  public void resume() {
    $Typings$.resume$129($js(this));
  }
  public  T pipe(T destination, net.java.html.lib.Objs options) {
    return (T)$Typings$.pipe$130($js(this), /* FirstTypeNode*/$js(destination), /* TypeLiteral*/$js(options));
  }
  public  T pipe(T destination) {
    return (T)$Typings$.pipe$131($js(this), /* FirstTypeNode*/$js(destination));
  }
  public  void unpipe(T destination) {
    $Typings$.unpipe$132($js(this), /* FirstTypeNode*/$js(destination));
  }
  public  void unpipe() {
    $Typings$.unpipe$133($js(this));
  }
  public void unshift(java.lang.Object chunk) {
    $Typings$.unshift$134($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$135($js(this), /* FirstTypeNode*/$js(oldStream)));
  }
  public java.lang.Boolean push(java.lang.Object chunk, java.lang.String encoding) {
    return $Typings$.push$136($js(this), /* AnyKeyword*/$js(chunk), encoding);
  }
  public java.lang.Boolean push(java.lang.Object chunk) {
    return $Typings$.push$137($js(this), /* AnyKeyword*/$js(chunk));
  }
  public java.lang.Boolean write(java.lang.Object chunk, net.java.html.lib.Function cb) {
    return $Typings$.write$138($js(this), /* AnyKeyword*/$js(chunk), /* FirstTypeNode*/$js(cb));
  }
  public java.lang.Boolean write(java.lang.Object chunk) {
    return $Typings$.write$139($js(this), /* AnyKeyword*/$js(chunk));
  }
  public java.lang.Boolean write(java.lang.Object chunk, java.lang.String encoding, net.java.html.lib.Function cb) {
    return $Typings$.write$140($js(this), /* AnyKeyword*/$js(chunk), encoding, /* FirstTypeNode*/$js(cb));
  }
  // skipping MethodKey{name={"kind":"Identifier","text":"write","right":[]}, parameters=[java.lang.Object]}
  public java.lang.Boolean write(java.lang.Object chunk, java.lang.String encoding) {
    return $Typings$.write$142($js(this), /* AnyKeyword*/$js(chunk), encoding);
  }
  public void end() {
    $Typings$.end$143($js(this));
  }
  public void end(java.lang.Object chunk, net.java.html.lib.Function cb) {
    $Typings$.end$144($js(this), /* AnyKeyword*/$js(chunk), /* FirstTypeNode*/$js(cb));
  }
  public void end(java.lang.Object chunk) {
    $Typings$.end$145($js(this), /* AnyKeyword*/$js(chunk));
  }
  public void end(java.lang.Object chunk, java.lang.String encoding, net.java.html.lib.Function cb) {
    $Typings$.end$146($js(this), /* AnyKeyword*/$js(chunk), encoding, /* FirstTypeNode*/$js(cb));
  }
  // skipping MethodKey{name={"kind":"Identifier","text":"end","right":[]}, parameters=[java.lang.Object]}
  public void end(java.lang.Object chunk, java.lang.String encoding) {
    $Typings$.end$148($js(this), /* AnyKeyword*/$js(chunk), encoding);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy