
net.java.html.lib.node.stream.Writable Maven / Gradle / Ivy
The newest version!
package net.java.html.lib.node.stream;
public class Writable extends net.java.html.lib.node.events.EventEmitter {
protected Writable(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(Writable.class);
}
@Override
public Writable create(java.lang.Object obj) {
return obj == null ? null : new Writable(this, obj);
}
};
private static final $Constructor $AS = new $Constructor();
public static Writable $as(java.lang.Object obj) {
return $AS.create(obj);
}
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 Writable(net.java.html.lib.node.stream.WritableOptions opts) {
this(Writable.$AS, $Typings$.new$93(/* FirstTypeNode*/$js(opts)));
}
public Writable() {
this(Writable.$AS, $Typings$.new$94());
}
public void _write(java.lang.Object chunk, java.lang.String encoding, net.java.html.lib.Function callback) {
$Typings$._write$95($js(this), /* AnyKeyword*/$js(chunk), encoding, /* FirstTypeNode*/$js(callback));
}
public java.lang.Boolean write(java.lang.Object chunk, net.java.html.lib.Function cb) {
return $Typings$.write$96($js(this), /* AnyKeyword*/$js(chunk), /* FirstTypeNode*/$js(cb));
}
public java.lang.Boolean write(java.lang.Object chunk) {
return $Typings$.write$97($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$98($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$100($js(this), /* AnyKeyword*/$js(chunk), encoding);
}
public void end() {
$Typings$.end$101($js(this));
}
public void end(java.lang.Object chunk, net.java.html.lib.Function cb) {
$Typings$.end$102($js(this), /* AnyKeyword*/$js(chunk), /* FirstTypeNode*/$js(cb));
}
public void end(java.lang.Object chunk) {
$Typings$.end$103($js(this), /* AnyKeyword*/$js(chunk));
}
public void end(java.lang.Object chunk, java.lang.String encoding, net.java.html.lib.Function cb) {
$Typings$.end$104($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$106($js(this), /* AnyKeyword*/$js(chunk), encoding);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy