|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--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 |
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 Detail |
Ndef(encoded)
Method Detail |
void decode(<ByteString> encoded)
encoded
- the encoded Ndef ByteString
ByteString getEncoded()
ByteString getPayload()
ByteString getTNF()
String getUri()
Boolean isChunked()
Boolean isIdLengthFlag()
Boolean isMessageBegin()
Boolean isMessageEnd(state)
Boolean isShortRecord()
Object setChunked(<Boolean> state)
state
-
Object setIdLengthFlag(<Boolean> state)
state
-
Object setMessageBegin(<Boolean> state)
state
-
Object setMessageEnd(<Boolean> state)
state
-
Object setShortRecord(<Boolean> state)
state
-
void setTNF(tnf)
state
-
String toString()
<static> Object newMessage(<String> type, <ByteString> payload)
type
- The type of the NDEF Message coded in US-ASCII.
payload
-
<static> NDEF newUri(<String> str)
str
-
<static> ByteString shortenString(<String> str)
str
- the message coded in UTF-8
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |