android.nfc.tech
Class MifareUltralight

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

public final class MifareUltralight
extends Object


Field Summary
static int PAGE_SIZE
           
static int TYPE_ULTRALIGHT
           
static int TYPE_ULTRALIGHT_C
           
static int TYPE_UNKNOWN
           
 
Method Summary
 void close()
           
 void connect()
           
static MifareUltralight get(Tag tag)
           
 int getMaxTransceiveLength()
           
 Tag getTag()
           
 int getTimeout()
           
 int getType()
           
 boolean isConnected()
           
 byte[] readPages(int pageOffset)
           
 void setTimeout(int timeout)
           
 byte[] transceive(byte[] data)
           
 void writePage(int pageOffset, byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
See Also:
Constant Field Values

TYPE_ULTRALIGHT

public static final int TYPE_ULTRALIGHT
See Also:
Constant Field Values

TYPE_ULTRALIGHT_C

public static final int TYPE_ULTRALIGHT_C
See Also:
Constant Field Values

PAGE_SIZE

public static final int PAGE_SIZE
See Also:
Constant Field Values
Method Detail

get

public static MifareUltralight get(Tag tag)

getType

public int getType()

readPages

public byte[] readPages(int pageOffset)
                 throws IOException
Throws:
IOException

writePage

public void writePage(int pageOffset,
                      byte[] data)
               throws IOException
Throws:
IOException

transceive

public byte[] transceive(byte[] data)
                  throws IOException
Throws:
IOException

getMaxTransceiveLength

public int getMaxTransceiveLength()

setTimeout

public void setTimeout(int timeout)

getTimeout

public int getTimeout()

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.