public class ExchangeModelSerializer extends Object
| Constructor and Description |
|---|
ExchangeModelSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
indent(boolean shouldIndent)
Hack due to apikit's code to read the main file from the exchange.json file.
|
ExchangeModel |
read(File exchangeFile) |
ExchangeModel |
read(InputStream inputStream) |
ExchangeModel |
read(Reader reader) |
void |
write(ExchangeModel model,
File output) |
void |
write(ExchangeModel model,
OutputStream output) |
void |
write(ExchangeModel model,
Writer output) |
public ExchangeModel read(File exchangeFile) throws IOException
IOExceptionpublic ExchangeModel read(InputStream inputStream) throws IOException
IOExceptionpublic ExchangeModel read(Reader reader) throws IOException
IOExceptionpublic void write(ExchangeModel model, File output) throws IOException
IOExceptionpublic void write(ExchangeModel model, Writer output) throws IOException
IOExceptionpublic void write(ExchangeModel model, OutputStream output) throws IOException
IOExceptionpublic void indent(boolean shouldIndent)
shouldIndent - boolean to enable/disable the feature on the mapper side.Copyright © 2022 MuleSoft, Inc.. All rights reserved.