public class PayloadFilter
extends SynchronousProcessor
| Constructor and Description |
|---|
PayloadFilter()
Instantiates a default filter that allows all packets through
|
| Modifier and Type | Method and Description |
|---|---|
Processor |
clone() |
protected boolean |
compute(java.lang.Object[] inputs,
java.util.Queue<java.lang.Object[]> outputs) |
Processor |
duplicate(boolean with_state) |
boolean |
setFilter(byte[] filter)
Sets the filter from a byte sequence.
|
boolean |
setFilter(java.lang.String hex)
Sets the filter from a hex value in string form.
|
public PayloadFilter()
public boolean setFilter(java.lang.String hex)
hex - Hex value of the filter (eg. "2D45")public boolean setFilter(byte[] filter)
filter - Byte sequenceprotected boolean compute(java.lang.Object[] inputs,
java.util.Queue<java.lang.Object[]> outputs)
public Processor clone()
public Processor duplicate(boolean with_state)
Copyright © Sylvain HallĂ©. All Rights Reserved.