src.templates._io._RawIOBase.derived Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-standalone Show documentation
Show all versions of jython-standalone Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
base_class: PyRawIOBase
want_dict: false
ctr:
no_toString: true
incl: _io._IOBase
unary1: readall
rest:
// Hand-crafted in _io._RawIOBase.derived
public PyObject read(int n) {
PyType self_type = getType();
PyObject impl = self_type.lookup("read");
if (impl != null) {
return impl.__get__(this, self_type).__call__(Py.newInteger(n));
} else {
return super.read(n);
}
}
public PyObject readinto(PyObject b) {
PyType self_type = getType();
PyObject impl = self_type.lookup("readinto");
if (impl != null) {
return impl.__get__(this, self_type).__call__(b);
} else {
return super.readinto(b);
}
}
public PyObject write(PyObject b) {
PyType self_type = getType();
PyObject impl = self_type.lookup("write");
if (impl != null) {
return impl.__get__(this, self_type).__call__(b);
} else {
return super.write(b);
}
}