|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NDEFTagConnection
Represents a connection to an NDEF tag. Provides methods to read and write to the tag.
| Method Summary | ||
|---|---|---|
void |
append(NDEFMessage msg)
Appends an NDEF message to the NDEF tag. |
|
void |
erase()
Erases all NDEF messages on the NDEF tag. |
|
boolean |
isLocked()
Indicates whether the NDEF tag is locked. |
|
void |
lock()
Locks the NDEF tag. |
|
NDEFMessage |
read()
Reads an NDEF message from an NDEF tag. |
|
void |
write(NDEFMessage msg)
Writes the NDEF message to the NDEF tag. |
|
| Methods inherited from interface javax.microedition.io.Connection |
|---|
close |
| Method Detail |
|---|
void write(NDEFMessage msg)
throws TagLockedException,
NotEnoughSpaceException,
NFCException
msg - The NDEFMessage to be write to the tag.
TagLockedException - If the write does not succeed because the tag is locked.
NotEnoughSpaceException - If there is insufficent space on the tag to write the message.
NFCException - When the write operation fails for any other reason.
NDEFMessage read()
throws NFCException
NDEFMessage, or null if no NDEF message can be read.
NFCException - If a problem occurred while trying to read the NDEFMessage.
void append(NDEFMessage msg)
throws NFCException
msg - The NDEFMessage to append.
NFCException - If append() operation fails.
void erase()
throws NFCException
NFCException - If erase() operation fails.
boolean isLocked()
throws NFCException
true if the detected NDEF tag is locked; false otherwise.
NFCException - If isLocked() operation fails.
void lock()
throws NFCException
NFCException - If lock() operation fails.
|
|||||||||
| 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