Examples of readFrom()


Examples of com.fasterxml.jackson.jaxrs.xml.JacksonXMLProvider.readFrom()

        assertNotNull(feats); // just a sanity check

        // ok: here let's verify that we can disable exception throwing unrecognized things
        @SuppressWarnings("unchecked")
        Class<Object> raw = (Class<Object>)(Class<?>)Bean.class;
        Object ob = prov.readFrom(raw, raw,
                new Annotation[] { feats },
                MediaType.APPLICATION_JSON_TYPE, null,
                new ByteArrayInputStream("<Bean><foobar>3</foobar></Bean>".getBytes("UTF-8")));
        assertNotNull(ob);
View Full Code Here

Examples of com.hazelcast.nio.ClientPacket.readFrom()

                if (readBytes == -1) {
                    throw new EOFException("Remote socket closed!");
                }
                readBuffer.flip();
            }
            boolean complete = packet.readFrom(readBuffer);
            if (complete) {
                if (readBuffer.hasRemaining()) {
                    readFromSocket = false;
                } else {
                    readBuffer.compact();
View Full Code Here

Examples of com.hazelcast.nio.Packet.readFrom()

                if (readBytes == -1) {
                    throw new EOFException("Remote socket closed!");
                }
                readBuffer.flip();
            }
            boolean complete = packet.readFrom(readBuffer);
            if (complete) {
                if (readBuffer.hasRemaining()) {
                    readFromSocket = false;
                } else {
                    readBuffer.compact();
View Full Code Here

Examples of com.mountainminds.eclemma.internal.core.MemoryExecutionDataSource.readFrom()

      writer = new RemoteControlWriter(socket.getOutputStream());
      final RemoteControlReader reader = new RemoteControlReader(
          socket.getInputStream());
      while (true) {
        final MemoryExecutionDataSource memory = new MemoryExecutionDataSource();
        memory.readFrom(reader);
        if (memory.isEmpty()) {
          return Status.OK_STATUS;
        }
        dataReceived = true;
        final CoverageSession session = new CoverageSession(
View Full Code Here

Examples of com.sun.enterprise.admin.remote.sse.GfSseEventReceiverProprietaryReader.readFrom()

                if (resultMediaType != null && resultMediaType.startsWith(MEDIATYPE_SSE)) {
                    try {
                        logger.log(Level.FINEST, "Response is SSE - about to read events");
                        closeSse = false;
                        ProprietaryReader<GfSseEventReceiver> reader = new GfSseEventReceiverProprietaryReader();
                        GfSseEventReceiver eventReceiver = reader.readFrom(urlConnection.getInputStream(), resultMediaType);
                        GfSseInboundEvent event;
                        String instanceId = null;
                        do {
                            event = eventReceiver.readEvent();
                            if (event != null) {
View Full Code Here

Examples of com.sun.xml.bind.v2.util.ByteArrayOutputStreamEx.readFrom()

        InputStream is = null;
        ByteArrayOutputStreamEx baos = null;
        try {
            baos = new ByteArrayOutputStreamEx();
            is = dh.getDataSource().getInputStream();
            baos.readFrom(is);
            data = baos.toByteArray();
            len = data.length;
            baos.close();
            is.close();
        } catch (IOException ioe) {
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.util.ByteArrayOutputStreamEx.readFrom()

    public byte[] get() {
        if(data==null) {
            try {
                ByteArrayOutputStreamEx baos = new ByteArrayOutputStreamEx(1024);
                InputStream is = dataHandler.getDataSource().getInputStream();
                baos.readFrom(is);
                is.close();
                data = baos.getBuffer();
                dataLen = baos.size();
            } catch (IOException e) {
                // TODO: report the error to the unmarshaller
View Full Code Here

Examples of com.xmlcalabash.runtime.XPipeline.readFrom()

    //Serialization serial
   
    //wd = new GenericWritableDocument(runtime, null, serial);
      GenericWritableDocument wd = new GenericWritableDocument(runtime, null, null, output);
    //--where serial is pipeline.getSerialization(port)
      ReadablePipe rpipe = pipeline.readFrom("result");
    //while...
    //try {
      wd.write(rpipe.read());
    //} catch (SaxonApiException e) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of ie.omk.smpp.Address.readFrom()

        for (int i = 0; i < count; i++) {
            int type = SMPPIO.bytesToInt(table, offset++, 1);
            if (type == 1) {
                // SME address..
                Address a = new Address();
                a.readFrom(table, offset);
                offset += a.getLength();
                dests.add(a);
            } else if (type == 2) {
                // Distribution list name
                String d = SMPPIO.readCString(table, offset);
View Full Code Here

Examples of ie.omk.smpp.ErrorAddress.readFrom()

            return;
        }

        for (int loop = 0; loop < unsuccessfulCount; loop++) {
            ErrorAddress a = new ErrorAddress();
            a.readFrom(body, offset);
            offset += a.getLength();
            unsuccessfulTable.add(a);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.