Class BoBData

java.lang.Object
org.jivesoftware.smackx.bob.BoBData

public class BoBData extends Object
Bits of Binary data class.
See Also:
  • Constructor Details

    • BoBData

      public BoBData(String type, byte[] content)
    • BoBData

      public BoBData(String type, byte[] content, Integer maxAge)
      BoB data constructor.
      Parameters:
      type - TODO javadoc me please
      content - TODO javadoc me please
      maxAge - TODO javadoc me please
    • BoBData

      public BoBData(String type, String content)
    • BoBData

      public BoBData(String type, String content, Integer maxAge)
  • Method Details

    • getMaxAge

      public Integer getMaxAge()
      Get the max age.
      Returns:
      the max age
    • getType

      public String getType()
      Get the type.
      Returns:
      the type
    • getContent

      public byte[] getContent()
      Get the content.
      Returns:
      the content
    • getContentBase64Encoded

      public String getContentBase64Encoded()
      Get the content in a Base64 encoded String.
      Returns:
      the content in a Base64 encoded String
    • isOfReasonableSize

      public boolean 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.