public class AccessEventWrapperProtobufDecoder extends java.lang.Object implements de.huxhorn.sulky.codec.Decoder<EventWrapper<AccessEvent>>
Constructor and Description |
---|
AccessEventWrapperProtobufDecoder(boolean compressing) |
Modifier and Type | Method and Description |
---|---|
static EventIdentifier |
convert(AccessProto.EventIdentifier eventIdentifier) |
static EventWrapper<AccessEvent> |
convert(AccessProto.EventWrapper parsedEvent) |
static SourceIdentifier |
convert(AccessProto.SourceIdentifier sourceIdentifier) |
EventWrapper<AccessEvent> |
decode(byte[] bytes) |
boolean |
isCompressing() |
public AccessEventWrapperProtobufDecoder(boolean compressing)
public boolean isCompressing()
public EventWrapper<AccessEvent> decode(byte[] bytes)
decode
in interface de.huxhorn.sulky.codec.Decoder<EventWrapper<AccessEvent>>
public static EventWrapper<AccessEvent> convert(AccessProto.EventWrapper parsedEvent)
public static EventIdentifier convert(AccessProto.EventIdentifier eventIdentifier)
public static SourceIdentifier convert(AccessProto.SourceIdentifier sourceIdentifier)