public class JsonOutputWriterStrategy extends Object implements OutputWriterStrategy
Additionally the implementation version, vendor and title is provided for external parsers.
| Constructor and Description |
|---|
JsonOutputWriterStrategy(OutputStream outputStream)
Creates a new instance of this strategy, all passed activities will be written to the provided output-stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeWriter()
Closes the writer but does not release or close the underlying output stream.
|
void |
writeActivity(Activity activity)
Write an
Activity to the provided output-stream
using the implementation-specific transformation of the content. |
public JsonOutputWriterStrategy(OutputStream outputStream)
outputStream - the output-stream to write the received activity-data in JSON-format topublic void writeActivity(Activity activity)
OutputWriterStrategyActivity to the provided output-stream
using the implementation-specific transformation of the content.writeActivity in interface OutputWriterStrategyactivity - the activity that will be transformed according to the strategy in use and written to the
provided output-streampublic void closeWriter()
OutputWriterStrategycloseWriter in interface OutputWriterStrategyCopyright © 2013–2015 Institute of networks and security. All rights reserved.