public final class DeviceProfileSerializer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HEADER_JSON_DELIMITER
The separator token used to separate JSON header from the subsequent payload.
|
| Constructor and Description |
|---|
DeviceProfileSerializer(byte[] content)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody() |
java.lang.String |
getHeader() |
byte[] |
serialize()
Serialize the content of this object into a byte stream, suitable for persisting to a filesystem.
|
public static final java.lang.String HEADER_JSON_DELIMITER
public DeviceProfileSerializer(byte[] content)
content - the data contained in the specified filepublic java.lang.String getHeader()
public byte[] getBody()
public byte[] serialize()
throws java.io.IOException
java.io.IOException - on failure to encode the object data into UTF-8