com.mindbright.ssh2
public class SSH2StreamSniffer extends java.lang.Object implements SSH2StreamFilter, SSH2StreamFilterFactory
System.err
. It
is very useful for debugging.Modifier and Type | Class and Description |
---|---|
protected class |
SSH2StreamSniffer.SniffInput |
protected class |
SSH2StreamSniffer.SniffOutput |
Modifier and Type | Field and Description |
---|---|
protected int |
id |
Modifier and Type | Method and Description |
---|---|
SSH2StreamFilter |
createFilter(SSH2Connection connection,
SSH2StreamChannel channel)
Instance constructor
|
static SSH2StreamSniffer |
getFilterFactory() |
java.io.InputStream |
getInputFilter(java.io.InputStream toBeFiltered)
Get the filter for the input stream.
|
java.io.OutputStream |
getOutputFilter(java.io.OutputStream toBeFiltered)
Get the filter for the output stream.
|
public static SSH2StreamSniffer getFilterFactory()
public SSH2StreamFilter createFilter(SSH2Connection connection, SSH2StreamChannel channel)
SSH2StreamFilterFactory
createFilter
in interface SSH2StreamFilterFactory
public java.io.InputStream getInputFilter(java.io.InputStream toBeFiltered)
SSH2StreamFilter
getInputFilter
in interface SSH2StreamFilter
toBeFiltered
- The stream to filter.public java.io.OutputStream getOutputFilter(java.io.OutputStream toBeFiltered)
SSH2StreamFilter
getOutputFilter
in interface SSH2StreamFilter
toBeFiltered
- The stream to filter.