|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.impl.EventFactory
Event factory produces events based on their types, or by calling a particular method on particular event format.
Constructor Summary | |
EventFactory()
|
Method Summary | |
static Event |
getPlainEvent(java.util.List aList)
Return a plain event with a list of attributes. |
static Event |
getPlainEvent(java.lang.String evt)
Return a plain event by parsing a string. |
static Event |
getSerializedEvent(byte[] cnt,
int offset,
int len)
Return a serialized event by parsing a byte array. |
static Event |
getSerializedEvent(java.util.List aList)
Return a serialized event with a list of attributes. |
static Event |
makeEvent(java.util.List aList)
Return an event with specified attributes, using default format. |
Adu |
parse(byte[] bytes)
Parse received byte array into an ADU. |
Adu |
parse(byte[] bytes,
int offset,
int len)
Parse part of the received byte array into an ADU. |
static Event |
parseEvent(byte[] bytes)
Parse the byte array into a particular event, the first byte indicates the event type. |
static Event |
parseEvent(byte[] bytes,
int offset,
int len)
Parse the byte array into a particular event, the first byte indicates the event type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EventFactory()
Method Detail |
public Adu parse(byte[] bytes) throws ParsingException
AduFactory
parse
in interface AduFactory
ParsingException
public Adu parse(byte[] bytes, int offset, int len) throws ParsingException
AduFactory
parse
in interface AduFactory
ParsingException
public static Event makeEvent(java.util.List aList)
public static Event parseEvent(byte[] bytes) throws ParsingException
ParsingException
public static Event parseEvent(byte[] bytes, int offset, int len) throws ParsingException
ParsingException
public static Event getPlainEvent(java.lang.String evt) throws ParsingException
ParsingException
public static Event getPlainEvent(java.util.List aList)
public static Event getSerializedEvent(byte[] cnt, int offset, int len) throws ParsingException
ParsingException
public static Event getSerializedEvent(java.util.List aList)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |