com.nxp.nfc_demo.widgets

## Class NFCWriter

- java.lang.Object
- - com.nxp.nfc_demo.widgets.NFCWriter

-     public class NFCWriter
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private java.lang.String` | `answer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NFCWriter()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `private android.nfc.NdefRecord` | `createRecord(java.lang.String text)`
    `java.lang.String` | `getAnswer()`
    `boolean` | `write(android.nfc.Tag tag, java.lang.String text)`

    - ### Methods inherited from class java.lang.Object

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

- - ### Field Detail

    - #### answer

          private java.lang.String answer

  - ### Constructor Detail

    - #### NFCWriter

          public NFCWriter()

  - ### Method Detail

    - #### write

          public boolean write(android.nfc.Tag tag,
                      java.lang.String text)
                        throws java.io.IOException,
                               android.nfc.FormatException

      Throws:
        `java.io.IOException`
        `android.nfc.FormatException`

    - #### createRecord

          private android.nfc.NdefRecord createRecord(java.lang.String text)
                                               throws java.io.UnsupportedEncodingException

      Throws:
        `java.io.UnsupportedEncodingException`

    - #### getAnswer

          public java.lang.String getAnswer()