|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.voytechs.jnetstream.codec.filter.Filter
public class Filter
Applies a filter as the packets are being decoded.
| Constructor Summary | |
|---|---|
Filter(java.lang.String expression,
Linker linker)
Initializes the filter with the given expression. |
|
| Method Summary | |
|---|---|
Node |
getExpressionAST()
|
java.lang.String |
getFilterExpression()
|
void |
processDecoderEvent(DecoderEvent event)
Catches Decoder event that was fired. |
void |
setExpression(java.lang.String exp)
Sets the current filter expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Filter(java.lang.String expression,
Linker linker)
throws SyntaxError,
NodeException
expression - Filter expression to parselinker - Linker object which can link our filter expression
SyntaxError - Any syntax errors in the filter expression
NodeException - Any filter runtime exceptions| Method Detail |
|---|
public void processDecoderEvent(DecoderEvent event)
throws AssertFailure
processDecoderEvent in interface DecoderListenerevent - Decoder Event to be processed
AssertFailure - Causes the current NPL structure being
to be discarded. Such as Header, Packet or Field.DecoderEvent
public void setExpression(java.lang.String exp)
throws SyntaxError,
NodeException
exp - The filter expression to be parsed and linked
SyntaxError
NodeExceptionpublic Node getExpressionAST()
public java.lang.String getFilterExpression()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||