Package com.vivokey.chipscanlib.tags
Class Spark2
- java.lang.Object
-
- com.vivokey.chipscanlib.tags.Spark2
-
- All Implemented Interfaces:
android.nfc.tech.TagTechnology
,Closeable
,AutoCloseable
public class Spark2 extends Object implements android.nfc.tech.TagTechnology
Wrapper class for a IsoDep or DummyTag Spark 2/Apex tag. Final class is the reason. Also implements TagTechnology, because of course we do!
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
connect()
android.nfc.Tag
getTag()
boolean
isConnected()
byte[]
transceive(byte[] input)
-
-
-
Method Detail
-
getTag
public android.nfc.Tag getTag()
- Specified by:
getTag
in interfaceandroid.nfc.tech.TagTechnology
-
connect
public void connect() throws IOException
- Specified by:
connect
in interfaceandroid.nfc.tech.TagTechnology
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceandroid.nfc.tech.TagTechnology
- Throws:
IOException
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceandroid.nfc.tech.TagTechnology
-
transceive
public byte[] transceive(byte[] input) throws IOException
- Throws:
IOException
-
-