public class BoBData extends Object
Constructor and Description |
---|
BoBData(String type,
byte[] content) |
BoBData(String type,
byte[] content,
int maxAge)
BoB data constructor.
|
BoBData(String type,
String content) |
BoBData(String type,
String content,
int maxAge) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Get the content.
|
String |
getContentBase64Encoded()
Get the content in a Base64 encoded String.
|
int |
getMaxAge()
Get the max age.
|
String |
getType()
Get the type.
|
boolean |
isOfReasonableSize()
Check if the data is of reasonable size.
|
public BoBData(String type, byte[] content, int maxAge)
type
- content
- maxAge
- public int getMaxAge()
public byte[] getContent()
public String getContentBase64Encoded()
public boolean isOfReasonableSize()