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

src.templates._io._RawIOBase.derived Maven / Gradle / Ivy

Go to download

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.

The newest version!
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);
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy