public abstract class HandshakeSniffingTransportWrapper<T1 extends TransportWrapper,T2 extends TransportWrapper> extends java.lang.Object implements TransportWrapper
Modifier and Type | Field and Description |
---|---|
protected TransportWrapper |
_selectedTransportWrapper |
protected T1 |
_wrapper1 |
protected T2 |
_wrapper2 |
Modifier | Constructor and Description |
---|---|
protected |
HandshakeSniffingTransportWrapper(T1 wrapper1,
T2 wrapper2) |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
bufferSize() |
int |
capacity() |
void |
close_head() |
void |
close_tail() |
java.nio.ByteBuffer |
head() |
protected boolean |
isDeterminationMade() |
protected abstract void |
makeDetermination(byte[] bytes) |
int |
pending() |
void |
pop(int bytes) |
int |
position() |
void |
process() |
java.nio.ByteBuffer |
tail() |
protected final T1 extends TransportWrapper _wrapper1
protected final T2 extends TransportWrapper _wrapper2
protected TransportWrapper _selectedTransportWrapper
public int capacity()
capacity
in interface TransportInput
public int position()
position
in interface TransportInput
public java.nio.ByteBuffer tail()
tail
in interface TransportInput
protected abstract int bufferSize()
protected abstract void makeDetermination(byte[] bytes)
public void process() throws TransportException
process
in interface TransportInput
TransportException
public void close_tail()
close_tail
in interface TransportInput
public int pending()
pending
in interface TransportOutput
public java.nio.ByteBuffer head()
head
in interface TransportOutput
public void pop(int bytes)
pop
in interface TransportOutput
public void close_head()
close_head
in interface TransportOutput
protected boolean isDeterminationMade()