Examples of readFrom()


Examples of org.openflow.protocol.action.OFAction.readFrom()

            if (demux.getLengthU() > data.remaining() ||
                    (data.position() + demux.getLengthU()) > end)
                return results;

            ofa = getAction(demux.getType());
            ofa.readFrom(data);
            if (OFAction.class.equals(ofa.getClass())) {
                // advance the position for un-implemented messages
                data.position(data.position()+(ofa.getLengthU() -
                        OFAction.MINIMUM_LENGTH));
            }
View Full Code Here

Examples of org.openflow.protocol.queue.OFPacketQueue.readFrom()

            remaining = data.remaining();
        this.queues = new ArrayList<OFPacketQueue>();
        while (remaining >= OFPacketQueue.MINIMUM_LENGTH) {
            OFPacketQueue queue = new OFPacketQueue();
            queue.setQueuePropertyFactory(this.queuePropertyFactory);
            queue.readFrom(data);
            remaining -= U16.f(queue.getLength());
            this.queues.add(queue);
        }
    }
View Full Code Here

Examples of org.openflow.protocol.queue.OFQueueProperty.readFrom()

            if (demux.getLengthU() > data.remaining() ||
                    (data.position() + demux.getLengthU()) > end)
                return results;

            ofqp = getQueueProperty(demux.getType());
            ofqp.readFrom(data);
            if (OFQueueProperty.class.equals(ofqp.getClass())) {
                // advance the position for un-implemented messages
                data.position(data.position()+(ofqp.getLengthU() -
                        OFQueueProperty.MINIMUM_LENGTH));
            }
View Full Code Here

Examples of org.openflow.protocol.statistics.OFStatistics.readFrom()

             * buffered past this message
             */
            if ((length - count) >= statistics.getLength()) {
                if (statistics instanceof OFActionFactoryAware)
                    ((OFActionFactoryAware)statistics).setActionFactory(this);
                statistics.readFrom(data);
                results.add(statistics);
                count += statistics.getLength();
                statistics = getStatistics(t, st);
            } else {
                if (count < length) {
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.provider.JaxbElementProvider.readFrom()

            public Type getRawType() {
                throw new UnsupportedOperationException(
                        "not implemented for this test");
            }
        };
        JAXBElement je = jaxbElementProvider.readFrom(
                (Class) JAXBElement.class, type, null, null, null,
                new ByteArrayInputStream(xml.getBytes()));
        System.out.println();
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.wrappers.provider.MessageBodyReader.readFrom()

            throw new NoMessageBodyReaderException(mediaType, this.convToCl);
        }
        final MultivaluedMap<String, String> httpHeaders = Util
                .getJaxRsHttpHeaders(request);
        try {
            return mbr.readFrom(this.convToCl, this.convToGen,
                    this.annotations, mediaType, entity.getCharacterSet(), httpHeaders, entity
                            .getStream());
        } catch (WebApplicationException wae) {
            throw wae;
        } catch (IOException e) {
View Full Code Here

Examples of org.strecks.holidaybooking.web.struts.form.HolidayBookingForm.readFrom()

    if (!isInputError)
    {
      long id = Long.parseLong(request.getParameter("holidayBookingId"));
      HolidayBooking holidayBooking = holidayBookingService.getHolidayBooking(id);
      holidayForm.readFrom(holidayBooking);
      holidayForm.setEditMode(true);
    }
   
    return mapping.findForward("success");
  }
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.