public final class ReportsUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Calendar |
deserializeCalendar(byte[] content)
This method deserializes the calendar from a JSON representation.
|
static Report |
deserializeReport(byte[] content)
This method deserializes the report from a JSON representation.
|
static ReportDefinition |
deserializeReportDefinition(byte[] content)
This method deserializes the report definition based on the contents.
|
static List<ReportDefinition> |
deserializeReportDefinitionList(byte[] content)
This method deserializes the report definition list based on the contents.
|
static byte[] |
serializeCalendar(Calendar cal)
This method serializes a calendar into a JSON representation.
|
static byte[] |
serializeReport(Report report)
This method serializes a report into a JSON representation.
|
static byte[] |
serializeReportDefinition(ReportDefinition defn)
This method serializes a report definition into a JSON representation.
|
public static ReportDefinition deserializeReportDefinition(byte[] content) throws Exception
content
- The contentException
- Failed to deserializepublic static List<ReportDefinition> deserializeReportDefinitionList(byte[] content) throws Exception
content
- The contentException
- Failed to deserializepublic static byte[] serializeReportDefinition(ReportDefinition defn) throws Exception
defn
- The report definitionException
- Failed to serializepublic static Report deserializeReport(byte[] content) throws Exception
content
- The JSON representation of the reportException
- Failed to deserializepublic static byte[] serializeReport(Report report) throws Exception
report
- The reportException
- Failed to serializepublic static Calendar deserializeCalendar(byte[] content) throws Exception
content
- The JSON representation of the calendarException
- Failed to deserializeCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.