Example usage for io.netty.buffer ByteBuf readShort

List of usage examples for io.netty.buffer ByteBuf readShort

Introduction

In this page you can find the example usage for io.netty.buffer ByteBuf readShort.

Prototype

public abstract short readShort();

Source Link

Document

Gets a 16-bit short integer at the current readerIndex and increases the readerIndex by 2 in this buffer.

Usage

From source file:org.projectfloodlight.openflow.protocol.ver13.OFBsnHashAlgorithmTypeSerializerVer13.java

public static OFBsnHashAlgorithmType readFrom(ByteBuf bb) throws OFParseError {
    try {//www. j a v a  2  s  . c o m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver13.OFBsnIpTunnelTypeSerializerVer13.java

public static OFBsnIpTunnelType readFrom(ByteBuf bb) throws OFParseError {
    try {/*from   w  ww  . j  a  v  a  2 s .c  o m*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver13.OFBsnLagFlagSerializerVer13.java

public static Set<OFBsnLagFlag> readFrom(ByteBuf bb) throws OFParseError {
    try {//from   w ww .  jav  a  2s  . c  o  m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver13.OFBsnMulticastPacketSerializerVer13.java

public static OFBsnMulticastPacket readFrom(ByteBuf bb) throws OFParseError {
    try {/*from  ww  w . ja  v a2s .  c om*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver13.OFBsnPortModeSerializerVer13.java

public static OFBsnPortMode readFrom(ByteBuf bb) throws OFParseError {
    try {/*  w w  w  .  ja v a 2 s .  c o m*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver13.OFBsnPortUsageSerializerVer13.java

public static OFBsnPortUsage readFrom(ByteBuf bb) throws OFParseError {
    try {//from   w w  w .j a  va2 s .  c  o  m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver13.OFBsnRoutingParamSerializerVer13.java

public static OFBsnRoutingParam readFrom(ByteBuf bb) throws OFParseError {
    try {/* w w  w .j a  v  a2  s. c  o m*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver13.OFBsnUpgradeSerializerVer13.java

public static OFBsnUpgrade readFrom(ByteBuf bb) throws OFParseError {
    try {/*from ww  w .  j  a v  a  2 s .c  o  m*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver15.OFFlowMonitorFlagsSerializerVer15.java

public static Set<OFFlowMonitorFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {//from  w ww  . j a  v a 2  s . c o  m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:org.projectfloodlight.openflow.protocol.ver15.OFFlowUpdateEventSerializerVer15.java

public static OFFlowUpdateEvent readFrom(ByteBuf bb) throws OFParseError {
    try {/*from w w  w . ja  v a  2 s.c  o  m*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}