Package org.teiid.translator.swagger
Class JsonSerializer
- java.lang.Object
-
- org.teiid.translator.swagger.JsonSerializer
-
- All Implemented Interfaces:
SwaggerSerializer
public class JsonSerializer extends Object implements SwaggerSerializer
-
-
Constructor Summary
Constructors Constructor Description JsonSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Document>
deserialize(InputStream stream)
InputStream
serialize(Document doc)
-
-
-
Method Detail
-
deserialize
public List<Document> deserialize(InputStream stream) throws TranslatorException
- Specified by:
deserialize
in interfaceSwaggerSerializer
- Throws:
TranslatorException
-
serialize
public InputStream serialize(Document doc) throws TranslatorException
- Specified by:
serialize
in interfaceSwaggerSerializer
- Throws:
TranslatorException
-
-