Class JsonSerializer
java.lang.Object
cz.metacentrum.perun.rpc.serializer.JsonSerializer
- All Implemented Interfaces:
Serializer
JSON serializer.
- Since:
- 0.1
- Author:
- Jan Klos invalid input: '<'ddd@mail.muni.cz>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidSerializesPerunException.voidSerializesPerunRuntimeException.
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
JsonSerializer
- Parameters:
out-OutputStreamto output serialized data- Throws:
IOException- if an IO error occurs
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfaceSerializer- Returns:
- Content-type of this serializer's output format and its encoding.
-
write
- Specified by:
writein interfaceSerializer- Throws:
IOException
-
writePerunException
Description copied from interface:SerializerSerializesPerunException.- Specified by:
writePerunExceptionin interfaceSerializer- Parameters:
pex-PerunExceptionto serialize- Throws:
IOException- If an IO error occurs
-
writePerunRuntimeException
Description copied from interface:SerializerSerializesPerunRuntimeException.- Specified by:
writePerunRuntimeExceptionin interfaceSerializer- Parameters:
prex-PerunRuntimeExceptionto serialize- Throws:
IOException- If an IO error occurs
-