android.nfc.tech
Class Ndef

java.lang.Object
  extended by android.nfc.tech.Ndef
All Implemented Interfaces:
TagTechnology, Closeable

public final class Ndef
extends Object


Field Summary
static String MIFARE_CLASSIC
           
static String NFC_FORUM_TYPE_1
           
static String NFC_FORUM_TYPE_2
           
static String NFC_FORUM_TYPE_3
           
static String NFC_FORUM_TYPE_4
           
 
Method Summary
 boolean canMakeReadOnly()
           
 void close()
           
 void connect()
           
static Ndef get(Tag tag)
           
 NdefMessage getCachedNdefMessage()
           
 int getMaxSize()
           
 NdefMessage getNdefMessage()
           
 Tag getTag()
           
 String getType()
           
 boolean isConnected()
           
 boolean isWritable()
           
 boolean makeReadOnly()
           
 void writeNdefMessage(NdefMessage msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NFC_FORUM_TYPE_1

public static final String NFC_FORUM_TYPE_1
See Also:
Constant Field Values

NFC_FORUM_TYPE_2

public static final String NFC_FORUM_TYPE_2
See Also:
Constant Field Values

NFC_FORUM_TYPE_3

public static final String NFC_FORUM_TYPE_3
See Also:
Constant Field Values

NFC_FORUM_TYPE_4

public static final String NFC_FORUM_TYPE_4
See Also:
Constant Field Values

MIFARE_CLASSIC

public static final String MIFARE_CLASSIC
See Also:
Constant Field Values
Method Detail

get

public static Ndef get(Tag tag)

getCachedNdefMessage

public NdefMessage getCachedNdefMessage()

getType

public String getType()

getMaxSize

public int getMaxSize()

isWritable

public boolean isWritable()

getNdefMessage

public NdefMessage getNdefMessage()
                           throws IOException,
                                  FormatException
Throws:
IOException
FormatException

writeNdefMessage

public void writeNdefMessage(NdefMessage msg)
                      throws IOException,
                             FormatException
Throws:
IOException
FormatException

canMakeReadOnly

public boolean canMakeReadOnly()

makeReadOnly

public boolean makeReadOnly()
                     throws IOException
Throws:
IOException

getTag

public Tag getTag()
Specified by:
getTag in interface TagTechnology

isConnected

public boolean isConnected()
Specified by:
isConnected in interface TagTechnology

connect

public void connect()
             throws IOException
Specified by:
connect in interface TagTechnology
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface TagTechnology
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2008-2012. All Rights Reserved.