Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(8)  |  Derive(0)  |  Import(14)

src/m/o/mod-lang-jython-HEAD/src/main/api_shim/core/shared_data.py   mod-lang-jython(Download)
 
from core.javautils import map_from_java
from core.buffer import Buffer
 
__author__ = "Scott Horn"
    def __getitem__(self, key):
        obj = self.java_obj.get(key)
        if isinstance(obj, org.vertx.java.core.buffer.Buffer):
            obj = Buffer(obj)
        return obj
            obj = iter.next()
            if isinstance(obj, org.vertx.java.core.buffer.Buffer):
                obj = Buffer(obj)
            func(obj)
 

src/m/o/mod-lang-jython-HEAD/src/main/api_shim/core/file_system.py   mod-lang-jython(Download)
import org.vertx.java.platform.impl.JythonVerticleFactory
 
from core.buffer import Buffer
from core.handlers import AsyncHandler
 
        def converter(buf):
            return Buffer(buf)
        self.java_obj.read(buf._to_java_buffer(), offset, position, length, AsyncHandler(handler, converter))
        return self
 
        def converter(buffer):
            return Buffer(buffer)
        self.java_obj.readFile(path, AsyncHandler(handler, converter))
        return self
 

src/m/o/mod-lang-jython-HEAD/src/main/api_shim/core/parsetools.py   mod-lang-jython(Download)
 
import org.vertx.java.core.parsetools.RecordParser
from core.buffer import Buffer
 
__author__ = "Scott Horn"
    def handle(self, buffer):
        """Call the handler after buffer parsed"""
        self.handler(Buffer(buffer))
 

src/m/o/mod-lang-jython-HEAD/src/main/api_shim/core/javautils.py   mod-lang-jython(Download)
    Integer
)
from core.buffer import Buffer
import org.vertx.java.core.json.JsonObject
import org.vertx.java.core.json.JsonArray
def map_buffer_from_java(obj):
    """Converts a Buffer to a Python Buffer."""
    return Buffer(obj)
 
def map_set_from_java(set_):

src/m/o/mod-lang-jython-HEAD/src/main/api_shim/core/datagram.py   mod-lang-jython(Download)
from core.streams import ReadSupport, DrainSupport, ExceptionSupport
from core.handlers import AsyncHandler, CloseHandler
from core.buffer import Buffer
from core.network_support import NetworkSupport
 
    def data(self):
        """Returns the data as buffer that was received."""
        if self.buffer is None:
            self.buffer = Buffer(self.packet.data())
        return self.buffer

src/m/o/mod-lang-jython-HEAD/src/main/api_shim/core/handlers.py   mod-lang-jython(Download)
import org.vertx.java.core.Handler
 
from core.buffer import Buffer
 
__author__ = "Scott Horn"

src/m/o/mod-lang-jython-HEAD/src/test/python_scripts/core/websocket/test_client.py   mod-lang-jython(Download)
import vertx
from test_utils import TestUtils
from core.buffer import Buffer
 
tu = TestUtils()

src/m/o/mod-lang-jython-HEAD/src/test/python_scripts/core/shareddata/test_client.py   mod-lang-jython(Download)
from test_utils import TestUtils
from core.shared_data import SharedData
from core.buffer import Buffer
 
tu = TestUtils()

src/m/o/mod-lang-jython-HEAD/src/test/python_scripts/core/parsetools/test_client.py   mod-lang-jython(Download)
from test_utils import TestUtils
from core.parsetools import RecordParser
from core.buffer import Buffer
 
tu = TestUtils()

src/m/o/mod-lang-jython-HEAD/src/test/python_scripts/core/net/test_client.py   mod-lang-jython(Download)
import vertx
from test_utils import TestUtils
from core.buffer import Buffer
 
tu = TestUtils()

  1 | 2  Next