public interface Marshaller
Event
and sends over a stream.Modifier and Type | Interface and Description |
---|---|
static class |
Marshaller.UncloseableOutputStream
OutputStream delegating every call except for
Marshaller.UncloseableOutputStream.close() to an other OutputStream. |
Modifier and Type | Method and Description |
---|---|
String |
getContentEncoding()
Returns the HTTP Content-Encoding, if applicable, or null.
|
String |
getContentType()
Returns the HTTP Content-Type, if applicable, or null.
|
void |
marshall(Event event,
OutputStream destination)
Serialises an event and sends it through an
OutputStream . |
void marshall(Event event, OutputStream destination) throws IOException
OutputStream
.
The marshaller should not close the given stream, use Marshaller.UncloseableOutputStream
to prevent automatic calls
to OutputStream.close()
.
event
- event to serialise.destination
- destination stream.IOException
- on write errorString getContentType()
String getContentEncoding()
Copyright © 2012–2020. All rights reserved.