
net.java.html.lib.node.stream.Duplex Maven / Gradle / Ivy
The newest version!
package net.java.html.lib.node.stream;
public class Duplex extends net.java.html.lib.node.stream.Readable {
protected Duplex(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(Duplex.class);
}
@Override
public Duplex create(java.lang.Object obj) {
return obj == null ? null : new Duplex(this, obj);
}
};
private static final $Constructor $AS = new $Constructor();
public static Duplex $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 Duplex(net.java.html.lib.node.stream.DuplexOptions opts) {
this(Duplex.$AS, $Typings$.new$107(/* FirstTypeNode*/$js(opts)));
}
public Duplex() {
this(Duplex.$AS, $Typings$.new$108());
}
public void _write(java.lang.Object chunk, java.lang.String encoding, net.java.html.lib.Function callback) {
$Typings$._write$109($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$110($js(this), /* AnyKeyword*/$js(chunk), /* FirstTypeNode*/$js(cb));
}
public java.lang.Boolean write(java.lang.Object chunk) {
return $Typings$.write$111($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$112($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$114($js(this), /* AnyKeyword*/$js(chunk), encoding);
}
public void end() {
$Typings$.end$115($js(this));
}
public void end(java.lang.Object chunk, net.java.html.lib.Function cb) {
$Typings$.end$116($js(this), /* AnyKeyword*/$js(chunk), /* FirstTypeNode*/$js(cb));
}
public void end(java.lang.Object chunk) {
$Typings$.end$117($js(this), /* AnyKeyword*/$js(chunk));
}
public void end(java.lang.Object chunk, java.lang.String encoding, net.java.html.lib.Function cb) {
$Typings$.end$118($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$120($js(this), /* AnyKeyword*/$js(chunk), encoding);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy