Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 82

javax.bluetooth
Class DataElement

java.lang.Object
  extended by javax.bluetooth.DataElement

public class DataElement
extends java.lang.Object

This class is defined by the JSR-82 specification Java™ APIs for Bluetooth™ Wireless Technology, Version 1.1.


Field Summary
static int BOOL
           
static int DATALT
           
static int DATSEQ
           
static int INT_1
           
static int INT_16
           
static int INT_2
           
static int INT_4
           
static int INT_8
           
static int NULL
           
static int STRING
           
static int U_INT_1
           
static int U_INT_16
           
static int U_INT_2
           
static int U_INT_4
           
static int U_INT_8
           
static int URL
           
static int UUID
           
 
Constructor Summary
DataElement(boolean bool)
           
DataElement(int valueType)
           
DataElement(int valueType, long value)
           
DataElement(int valueType, java.lang.Object value)
           
 
Method Summary
 void addElement(DataElement elem)
           
 boolean getBoolean()
           
 int getDataType()
           
 long getLong()
           
 int getSize()
           
 java.lang.Object getValue()
           
 void insertElementAt(DataElement elem, int index)
           
 boolean removeElement(DataElement elem)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final int NULL
See Also:
Constant Field Values

U_INT_1

public static final int U_INT_1
See Also:
Constant Field Values

U_INT_2

public static final int U_INT_2
See Also:
Constant Field Values

U_INT_4

public static final int U_INT_4
See Also:
Constant Field Values

U_INT_8

public static final int U_INT_8
See Also:
Constant Field Values

U_INT_16

public static final int U_INT_16
See Also:
Constant Field Values

INT_1

public static final int INT_1
See Also:
Constant Field Values

INT_2

public static final int INT_2
See Also:
Constant Field Values

INT_4

public static final int INT_4
See Also:
Constant Field Values

INT_8

public static final int INT_8
See Also:
Constant Field Values

INT_16

public static final int INT_16
See Also:
Constant Field Values

URL

public static final int URL
See Also:
Constant Field Values

UUID

public static final int UUID
See Also:
Constant Field Values

BOOL

public static final int BOOL
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

DATSEQ

public static final int DATSEQ
See Also:
Constant Field Values

DATALT

public static final int DATALT
See Also:
Constant Field Values
Constructor Detail

DataElement

public DataElement(int valueType)

DataElement

public DataElement(boolean bool)

DataElement

public DataElement(int valueType,
                   long value)

DataElement

public DataElement(int valueType,
                   java.lang.Object value)
Method Detail

addElement

public void addElement(DataElement elem)

insertElementAt

public void insertElementAt(DataElement elem,
                            int index)

getSize

public int getSize()

removeElement

public boolean removeElement(DataElement elem)

getDataType

public int getDataType()

getLong

public long getLong()

getBoolean

public boolean getBoolean()

getValue

public java.lang.Object getValue()

JSR 82

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 82 specification.