Package com.dadfha.uid.Ucode

Examples of com.dadfha.uid.Ucode.UcodeType


                          ( buffer[ResUcdQueryField.QUERY_MODE.getByteIndex() + 1] ) ) );
   
    QueryAttribute attribute = QueryAttribute.valueOf( (short) ( ( buffer[ResUcdQueryField.QUERY_ATTRIBUTE.getByteIndex()] << 8 ) |
                                  ( buffer[ResUcdQueryField.QUERY_ATTRIBUTE.getByteIndex() + 1] ) ) );
   
    UcodeType ucodeType = UcodeType.valueOf( (short) ( (buffer[ResUcdQueryField.UCODE_TYPE.getByteIndex()] << 8 ) | ( buffer[ResUcdQueryField.UCODE_TYPE.getByteIndex() + 1] ) ) );
       
    short ucodeLength = (short) ( (buffer[ResUcdQueryField.UCODE_LENGTH.getByteIndex()] << 8 ) | ( buffer[ResUcdQueryField.UCODE_LENGTH.getByteIndex() + 1] ) );
   
    // Construct query packet
    ResUcdQuery packet = new ResUcdQuery(t, mode, attribute, ucodeType, ucodeLength);
View Full Code Here


   * @return UcodeType
   * @throws RuntimeException when ucode type value not recognized
   */
  public final UcodeType getUcodeType() {
    short type = getDataShort(ResUcdQueryField.UCODE_TYPE.getByteIndex());
    UcodeType ut = UcodeType.valueOf(type);
    if(ut == null) throw new RuntimeException("The ucode type field cannot be recognized.");
    return ut; 
  }
View Full Code Here

TOP

Related Classes of com.dadfha.uid.Ucode.UcodeType

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.