*/
package org.pcmm.gates.impl;
-import java.net.InetAddress;
-import java.net.UnknownHostException;
-
import org.pcmm.base.impl.PCMMBaseObject;
import org.pcmm.gates.IExtendedClassifier;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
/**
*
*/
}
/**
- * @param data
+ * @param data - the data bytes to parse
*/
public ExtendedClassifier(byte[] data) {
super(data);
}
/**
- * @param len
- * @param sType
- * @param sNum
+ * @param len - the classifier's length
+ * @param sType - the sType value
+ * @param sNum - the sNum value
*/
public ExtendedClassifier(short len, byte sType, byte sNum) {
super(len, sType, sNum);
* @see org.pcmm.gates.IClassifier#getProtocol()
*/
@Override
- public Protocol getProtocol() {
- return Protocol.valueOf(getShort((short) 0));
+ public short getProtocol() {
+ return getShort((short) 0);
}
/*
* @see org.pcmm.gates.IClassifier#setProtocol(short)
*/
@Override
- public void setProtocol(Protocol p) {
- setShort(p.getValue(), (short) 0);
+ public void setProtocol(short p) {
+ setShort(p, (short) 0);
}
/*