Class Ndef

Object
   |
   +--Ndef

class Ndef

Defined in ndef.js


Field Summary
 Object flags
          
 Object id
          
 Object typeLength
          
<static>  Object chunkFlag
          
<static>  Object idLengthFlag
          
<static>  Object messageBegin
          
<static>  Object messageEnd
          
<static>  Object shortRecord
          
<static>  Object tnf
          
<static>  Object uriIdentifier
          
 
Constructor Summary
Ndef(encoded)
            --------- |.##> <##.| Open Smart Card Development Platform (www.openscdp.org) |# #| |# #| Copyright (c) 1999-2011 CardContact Software & System Consulting |'##> <##'| Andreas Schwier, 32429 Minden, Germany (www.cardcontact.de) ---------
 
Method Summary
 void decode(<ByteString> encoded)
           Create Ndef object
 ByteString getEncoded()
           Return the Ndef in encoded format
 ByteString getPayload()
           Return the payload of the NDEF object.
 ByteString getTNF()
           Return the TNF flag The flag indicates the structure of the type value.
 String getUri()
           Return the decoded URI in readable form.
 Boolean isChunked()
           Check if the Chunk flag is set.
 Boolean isIdLengthFlag()
           Check if the ID Length flag is set.
 Boolean isMessageBegin()
           Check if the Message Begin flag is set.
 Boolean isMessageEnd(state)
           Check if the Message End flag is set.
 Boolean isShortRecord()
           Check if the Short Record flag is set.
 Object setChunked(<Boolean> state)
           Set the Chunk flag.
 Object setIdLengthFlag(<Boolean> state)
           Set the ID Length flag.
 Object setMessageBegin(<Boolean> state)
           Set the Message Begin flag.
 Object setMessageEnd(<Boolean> state)
           Set the Message End flag.
 Object setShortRecord(<Boolean> state)
           Set the Short Record flag.
 void setTNF(tnf)
           Set the TNF (Type Name Format) flag.
 String toString()
          
<static> Object newMessage(<String> type, <ByteString> payload)
           Create a new NDEF Message
<static> NDEF newUri(<String> str)
           Create a new Uri from string
<static> ByteString shortenString(<String> str)
           Search for possible abbrevation in String and return the corresponding Uri Identifier

Field Detail

flags

Object flags

id

Object id

typeLength

Object typeLength

chunkFlag

<static> Object chunkFlag

idLengthFlag

<static> Object idLengthFlag

messageBegin

<static> Object messageBegin

messageEnd

<static> Object messageEnd

shortRecord

<static> Object shortRecord

tnf

<static> Object tnf

uriIdentifier

<static> Object uriIdentifier

Constructor Detail

Ndef

Ndef(encoded)

Method Detail

decode

void decode(<ByteString> encoded)

getEncoded

ByteString getEncoded()

getPayload

ByteString getPayload()

getTNF

ByteString getTNF()

getUri

String getUri()

isChunked

Boolean isChunked()

isIdLengthFlag

Boolean isIdLengthFlag()

isMessageBegin

Boolean isMessageBegin()

isMessageEnd

Boolean isMessageEnd(state)

isShortRecord

Boolean isShortRecord()

setChunked

Object setChunked(<Boolean> state)

setIdLengthFlag

Object setIdLengthFlag(<Boolean> state)

setMessageBegin

Object setMessageBegin(<Boolean> state)

setMessageEnd

Object setMessageEnd(<Boolean> state)

setShortRecord

Object setShortRecord(<Boolean> state)

setTNF

void setTNF(tnf)

toString

String toString()

newMessage

<static> Object newMessage(<String> type, <ByteString> payload)

newUri

<static> NDEF newUri(<String> str)

shortenString

<static> ByteString shortenString(<String> str)


Documentation generated by JSDoc on Tue Sep 3 22:29:45 2013