public interface PcapHandler<T extends PcapActivityListener> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addPcapProcessor(T processor)
Adds a custom listener or processor to the set of already registered listeners.
|
void |
close()
Closes the underlying input streams (if not closed already) and releases any system resources associated
with it.
|
PcapActivity |
getCurrentPcapActivity()
A convenience method that provides a reference to the currently processed PcapActivity, i.e.
|
boolean |
readNextPcapEntry(T processor)
Read the next Pcap entry from the respective input stream.
|
void |
removePcapProcessor(T processor)
Removes a custom listener or processor from the set of already registered listeners.
|
boolean readNextPcapEntry(T processor)
processor - A Pcap-Entry processor capable of handling the read PcapActivity.PcapActivity getCurrentPcapActivity()
void addPcapProcessor(T processor)
processor - a custom listener to decoded pcap entries and related eventsvoid removePcapProcessor(T processor)
processor - a registered listenervoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOException - if an I/O error occursCopyright © 2013–2015 Institute of networks and security. All rights reserved.