com.gprinter.io

## 类 NfcPort

- java.lang.Object
- - com.gprinter.io.NfcPort

-     public class NfcPort
      extends java.lang.Object

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `byte[]` | `KEYDEFAULT`
    `byte[]` | `KEYFORUM`
    `MifareClassic` | `mfc`
    `NfcAdapter` | `NfcAdapter`
    `PendingIntent` | `PendingIntent`
    `Tag` | `tag`

  - ### 构造器概要

    构造器
    构造器和说明
    `NfcPort(Context context)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `checkNFCFunction()`
    `boolean` | `close()`
    `boolean` | `Connect()`
    `void` | `DisableNfc()`
    `void` | `EableNfc()`
    `int` | `GetBlockCount()`
    `int` | `GetBlockCountInSector(int Sector)`
    `byte[]` | `GetId()`
    `int` | `GetSectorCount()`
    `int` | `GetSectorFirstBlockNum(int Sector)`
    `int` | `GetSize()`
    `java.lang.String` | `GetType()`
    `boolean` | `PairKey(byte[] keyA, byte[] keyB, int Sector)`
    `void` | `PutIntent(Intent intent)`
    `byte[]` | `ReadData(int Block)`
    `boolean` | `WriteData(int Block, byte[] data)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### NfcAdapter

          public NfcAdapter NfcAdapter

    - #### PendingIntent

          public PendingIntent PendingIntent

    - #### tag

          public Tag tag

    - #### mfc

          public MifareClassic mfc

    - #### KEYFORUM

          public byte[] KEYFORUM

    - #### KEYDEFAULT

          public byte[] KEYDEFAULT

  - ### 构造器详细资料

    - #### NfcPort

          public NfcPort(Context context)

  - ### 方法详细资料

    - #### EableNfc

          public void EableNfc()

    - #### DisableNfc

          public void DisableNfc()

    - #### checkNFCFunction

          public boolean checkNFCFunction()

    - #### PutIntent

          public void PutIntent(Intent intent)

    - #### GetId

          public byte[] GetId()

    - #### Connect

          public boolean Connect()

    - #### GetType

          public java.lang.String GetType()

    - #### GetSectorCount

          public int GetSectorCount()

    - #### GetBlockCount

          public int GetBlockCount()

    - #### GetSize

          public int GetSize()

    - #### GetBlockCountInSector

          public int GetBlockCountInSector(int Sector)

    - #### GetSectorFirstBlockNum

          public int GetSectorFirstBlockNum(int Sector)

    - #### PairKey

          public boolean PairKey(byte[] keyA,
                                 byte[] keyB,
                                 int Sector)
                          throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### WriteData

          public boolean WriteData(int Block,
                                   byte[] data)
                            throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### ReadData

          public byte[] ReadData(int Block)
                          throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### close

          public boolean close()
                        throws java.lang.Exception

      抛出:
        `java.lang.Exception`