|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Captures.LocalFactory
Factory interface for local sessions. This is a factory interface which
provides access to jNetStream implementation of this API. The LocalFactory
interface provides additional methods, besides the ones found in
Captures.Factory, that may only be used locally on a system. You can use
Captures.getLocal() method to aquire a reference to the default
factory that creates all local instances of capture framework objects.
| Field Summary |
|---|
| Fields inherited from interface org.jnetstream.capture.Captures.LiveCaptureFactory |
|---|
LIVE_CAPTURE_FACTORY_CLASS_PROPERTY |
| Method Summary | ||
|---|---|---|
FormatType |
formatType(java.nio.channels.ReadableByteChannel in)
Gets the type of underlying file format the input stream is in. |
|
FormatType.Detail |
formatTypeDetail(java.io.File f)
|
|
FormatType.Detail |
formatTypeDetail(java.nio.channels.ReadableByteChannel in)
|
|
|
newInput(java.lang.Class<T> t,
java.io.File file,
Filter<ProtocolFilterTarget> filter)
Creates a capture session which reads from a formatted file. |
|
|
newInput(java.lang.Class<T> t,
java.nio.channels.ReadableByteChannel in)
Creates a capture session which reads from a formatted input stream. |
|
|
newInput(java.lang.Class<T> t,
java.nio.channels.ReadableByteChannel in,
Filter<ProtocolFilterTarget> filter)
Creates a capture session which reads from a formatted input stream. |
|
InputCapture<? extends CapturePacket> |
newInput(java.io.File file,
Filter<ProtocolFilterTarget> filter)
Creates a capture session which reads from a formatted file. |
|
InputCapture<? extends CapturePacket> |
newInput(java.nio.channels.ReadableByteChannel in)
Creates a capture session which reads from a formatted channel. |
|
InputCapture<? extends CapturePacket> |
newInput(java.nio.channels.ReadableByteChannel in,
Filter<ProtocolFilterTarget> filter)
Creates a capture session which reads from a formatted channel. |
|
|
newOutput(java.lang.Class<T> t,
java.nio.channels.WritableByteChannel out)
Creates an outbound capture session that is connected to the the supplied WritableByteChannel. |
|
OutputCapture |
newOutput(FormatType type,
java.io.OutputStream out)
Creates an outbound capture session that is connected to the the supplied OutputStream. |
|
FileCapture<? extends FilePacket> |
openFile(java.io.File file,
FileMode mode)
|
|
| Methods inherited from interface org.jnetstream.capture.Captures.Factory |
|---|
append, catFile, catFile, countPackets, formatType, newFile, newFile, newFile, newFile, openFile, openFile, openFile, openFile, registerListener, removeRegisteredListener, splitFile, splitFile, validateFile |
| Methods inherited from interface org.jnetstream.capture.Captures.LiveCaptureFactory |
|---|
listCaptureDevices, newCaptureDevice, openLive, openLive, openLive, openLive, openLive, openLive, openLive, openTransmitter, openTransmitter |
| Method Detail |
|---|
FormatType formatType(java.nio.channels.ReadableByteChannel in)
throws java.io.IOException
formatType in interface Captures.Factoryin - stream that has the data to read from
java.io.IOException
FormatType.Detail formatTypeDetail(java.io.File f)
throws java.io.IOException
f -
java.io.IOException
FormatType.Detail formatTypeDetail(java.nio.channels.ReadableByteChannel in)
throws java.io.IOException
in -
java.io.IOException
InputCapture<? extends CapturePacket> newInput(java.io.File file,
Filter<ProtocolFilterTarget> filter)
throws java.io.IOException
t - the returned result is class t type specificin - input stream
java.io.IOException - any IO errors
<T extends InputCapture<? extends FilePacket>> T newInput(java.lang.Class<T> t,
java.io.File file,
Filter<ProtocolFilterTarget> filter)
throws java.io.IOException
t - the returned result is class t type specificin - input stream
java.io.IOException - any IO errors
<T extends InputCapture<? extends FilePacket>> T newInput(java.lang.Class<T> t,
java.nio.channels.ReadableByteChannel in)
throws java.io.IOException
t - the returned result is class t type specificin - input stream
java.io.IOException - any IO errors
<T extends InputCapture<? extends FilePacket>> T newInput(java.lang.Class<T> t,
java.nio.channels.ReadableByteChannel in,
Filter<ProtocolFilterTarget> filter)
throws java.io.IOException
t - the returned result is class t type specificin - input streamfilter - default packet filter
java.io.IOException - any IO errors
InputCapture<? extends CapturePacket> newInput(java.nio.channels.ReadableByteChannel in)
throws java.io.IOException
in - input stream
java.io.IOException - any IO errors
InputCapture<? extends CapturePacket> newInput(java.nio.channels.ReadableByteChannel in,
Filter<ProtocolFilterTarget> filter)
throws java.io.IOException
in - input streamfilter - a filter to filter certain elements from the stream
java.io.IOException - any IO errors
<T extends OutputCapture> T newOutput(java.lang.Class<T> t,
java.nio.channels.WritableByteChannel out)
throws java.io.IOException
t - format type to format the data intoout - output stream to where to send the serialized formatted byte
stream
java.io.IOException - any IO errors
OutputCapture newOutput(FormatType type,
java.io.OutputStream out)
throws java.io.IOException
type - format type to format the data intoout - output stream to where to send the serialized formatted byte
stream
java.io.IOException - any IO errors
FileCapture<? extends FilePacket> openFile(java.io.File file,
FileMode mode)
throws FileFormatException,
java.io.IOException
file - mode -
java.io.IOException
FileFormatException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||