Package org.jivesoftware.smackx.bob
Class BoBData
java.lang.Object
org.jivesoftware.smackx.bob.BoBData
Bits of Binary data class.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the content.Get the content in a Base64 encoded String.Get the max age.getType()Get the type.booleanCheck if the data is of reasonable size. 
- 
Constructor Details
- 
BoBData
 - 
BoBData
BoB data constructor.- Parameters:
 type- TODO javadoc me pleasecontent- TODO javadoc me pleasemaxAge- TODO javadoc me please
 - 
BoBData
 - 
BoBData
 
 - 
 - 
Method Details
- 
getMaxAge
Get the max age.- Returns:
 - the max age
 
 - 
getType
Get the type.- Returns:
 - the type
 
 - 
getContent
Get the content.- Returns:
 - the content
 
 - 
getContentBase64Encoded
Get the content in a Base64 encoded String.- Returns:
 - the content in a Base64 encoded String
 
 - 
isOfReasonableSize
Check if the data is of reasonable size. XEP-0231 suggest that the size should not be more than 8 KiB.- Returns:
 - true if the data if of reasonable size.
 
 
 -