org.jnetstream.capture
Interface InputCapture.FormatTypeOtherFactory

Enclosing interface:
InputCapture<T extends CapturePacket>

public static interface InputCapture.FormatTypeOtherFactory

Factory interface used by InputCapture factories to load NPL based files who's format is FormatType.Other. The defaut factory for this interface can be overriden using the InputCapture.PROPERTY_INPUTCAPTURE_OTHER_FACTORY.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
 FormatType formatType(java.nio.channels.ReadableByteChannel in)
          Checks the format type of this channel.
 FormatType.Detail formatTypeDetail(com.slytechs.utils.memory.channel.BufferedReadableByteChannel in)
           
 InputCapture<CapturePacket> newInput(java.nio.channels.ReadableByteChannel in, Filter<ProtocolFilterTarget> filter)
          Create new input capture of file format FormatType.Other.
 

Method Detail

formatType

FormatType formatType(java.nio.channels.ReadableByteChannel in)
                      throws java.io.IOException
Checks the format type of this channel. If this is acceptable file format FileFormat.Other will be returned. More detailed file format can be queried using the method InputCapture.getFormatName().

Parameters:
in - input channel to scan for format type
Returns:
type of format this is
Throws:
java.io.IOException - any IO errors

newInput

InputCapture<CapturePacket> newInput(java.nio.channels.ReadableByteChannel in,
                                     Filter<ProtocolFilterTarget> filter)
                                     throws java.io.IOException
Create new input capture of file format FormatType.Other. The file format can not be more specifically subclassed as these file formats are all NPL based and not based on the "capture framework's" core supplied file formats.

Parameters:
in - channel from which to decode
filter - packet filter to apply
Returns:
InputCapture which will decode the in channel
Throws:
java.io.IOException - any IO errors

formatTypeDetail

FormatType.Detail formatTypeDetail(com.slytechs.utils.memory.channel.BufferedReadableByteChannel in)
                                   throws java.io.IOException
Parameters:
b -
Returns:
Throws:
java.io.IOException