Class NDefDecoder
java.lang.Object
com.rvi.application.NDefDecoder
Decodes supported NDEF records without requiring a reader or a TLV wrapper.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(NDefMessage message) Returns immutable typed content in record order. vCards support SocialCard's name, email, text phone and website fields; unsupported fields are rejected.decodeURIs(NDefMessage message) Returns only URI strings in record order; other supported records are skipped.
-
Constructor Details
-
NDefDecoder
public NDefDecoder()
-
-
Method Details
-
decode
Returns immutable typed content in record order. vCards support SocialCard's name, email, text phone and website fields; unsupported fields are rejected. WSC decoding supports a single open or WPA2/AES credential.- Parameters:
message- validated NDEF message, not null- Returns:
- decoded content
- Throws:
NDefMessageException- if a payload cannot be represented by the domain model
-
decodeURIs
Returns only URI strings in record order; other supported records are skipped.
-