public class SerializationUtils extends Object
| Constructor and Description |
|---|
SerializationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ProfileImpl |
deserialize(ProfileDTO dto,
ConcurrentMap<String,org.osgi.service.component.ComponentServiceObjects<ProfileTemplate>> templates) |
static ProfileImpl |
read(InputStream in,
ConcurrentMap<String,org.osgi.service.component.ComponentServiceObjects<ProfileTemplate>> templates) |
static ProfileImpl |
read(Reader in,
ConcurrentMap<String,org.osgi.service.component.ComponentServiceObjects<ProfileTemplate>> templates) |
static ProfileDTO |
serialize(ProfileImpl profile) |
static void |
write(OutputStream out,
ProfileImpl profile) |
static void |
write(Writer out,
ProfileImpl profile) |
public static void write(OutputStream out, ProfileImpl profile) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonGenerationExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic static void write(Writer out, ProfileImpl profile) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonGenerationExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic static ProfileImpl read(InputStream in, ConcurrentMap<String,org.osgi.service.component.ComponentServiceObjects<ProfileTemplate>> templates) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
com.fasterxml.jackson.core.JsonProcessingExceptionIOExceptionpublic static ProfileImpl read(Reader in, ConcurrentMap<String,org.osgi.service.component.ComponentServiceObjects<ProfileTemplate>> templates) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
com.fasterxml.jackson.core.JsonProcessingExceptionIOExceptionpublic static ProfileImpl deserialize(ProfileDTO dto, ConcurrentMap<String,org.osgi.service.component.ComponentServiceObjects<ProfileTemplate>> templates)
dto - templates - NullPointerException - if ProfileDTO.templateId is nullIllegalStateException - if the required ProfileTemplate is not availablepublic static ProfileDTO serialize(ProfileImpl profile)
Copyright © 2018–2019. All rights reserved.