Package org.apache.geronimo.network.protocol

Examples of org.apache.geronimo.network.protocol.PacketFieldFactory


     * @return the field in for from of a packet
     * @throws ProtocolException
     */
    public PacketField read(ByteBuffer buffer) throws ProtocolException {
        Byte key = new Byte(buffer.get());
        PacketFieldFactory factory = (PacketFieldFactory) factories.get(key);

        if (factory == null) throw new ProtocolException("No factory registered for " + key);

        return factory.create(buffer);
    }
View Full Code Here


     * @return the field in for from of a packet
     * @throws ProtocolException
     */
    public PacketField read(ByteBuffer buffer) throws ProtocolException {
        Byte key = new Byte(buffer.get());
        PacketFieldFactory factory = (PacketFieldFactory) factories.get(key);

        if (factory == null) throw new ProtocolException("No factory registered for " + key);

        return factory.create(buffer);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.network.protocol.PacketFieldFactory

Copyright © 2018 www.massapicom. 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.