|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.io.nfc.readerwriter.Target
public class Target
Represents a card or tag that the NFC controller detected. Also identifies the type of contactless protocol that is used to connect to the card or tag. Contactless protocols are grouped into four categories (beginning with the lowest layer):
| Field Summary | ||
|---|---|---|
static int |
ISO_14443_3
Represents ISO 14443 A-3, B-3. |
|
static int |
ISO_14443_4
Represents ISO 14443 A-4, B-4. |
|
static int |
NDEF_TAG
Represents NFC tag types 1, 2, 3, 4. |
|
| Method Summary | ||
|---|---|---|
Enumeration |
getProperties()
Returns an Enumeration containing all the available properties
for this target. |
|
String |
getProperty(String propertyName)
Returns the property value for the property name specified. |
|
int[] |
getTypes()
Returns the array of types for this target. |
|
String |
getUri(int connectionType)
Returns a URI that can be used to establish a connection with the tag. |
|
boolean |
isType(int type)
Indicates whether this target is the type specified. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ISO_14443_4
public static final int ISO_14443_3
public static final int NDEF_TAG
| Method Detail |
|---|
public String getUri(int connectionType)
Connector.open() for
more information about opening connections.
connectionType - Target.ISO_14443_4,
Target.PLAIN_TAG, or Target.NDEF_TAG
public String getProperty(String propertyName)
The - name of a property.
Supported properties:
"Name" name of a NFC target. Possible values:
"Desfire D40"
"Desfire EV1 2K"
"Desfire EV1 4K"
"Desfire EV1 8K"
"Jewel"
"Mifare UL"
"Mifare UL C"
"Topaz"
"Topaz 512"
"Unknown"
"ISO_14443_3_TYPE" either "A" or "B"
"ISO_14443_4_TYPE" either "A" or "B"
"FreeSpaceSize" in bytes
"IsLockable" either "TRUE" or "FALSE"
"IsLocked" either "TRUE" or "FALSE"
"SerialNumberLength" in bytes
"SerialNumber"
"TagType" either "1", "2", "3" or "4"
"IsNDEFCapable" either "TRUE" or "FALSE"
"RawTagSize" in bytes
Only "Name" property is always present the other properties depend on the target.
public Enumeration getProperties()
Enumeration containing all the available properties
for this target. See getProperty(String)
for a list of supported properties.
Enumeration containing all properties available for this target,
or null if none are availablepublic boolean isType(int type)
type - Target.ISO_14443_3, Target.ISO_14443_4 or
Target.NDEF_TAG
true if the target is the type specified; false otherwise.public int[] getTypes()
getUri to obtain the URI used to connect to the tag.
Target.ISO_14443_3, Target.ISO_14443_4, Target.NDEF_TAG
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal