|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aelitis.azureus.core.networkmanager.impl.http.HTTPMessageDecoder
public class HTTPMessageDecoder
Constructor Summary | |
---|---|
HTTPMessageDecoder()
|
|
HTTPMessageDecoder(java.lang.String pre_read_header)
|
Method Summary | |
---|---|
protected void |
addMessage(Message message)
|
java.nio.ByteBuffer |
destroy()
Destroy this decoder, i.e. |
int |
getDataBytesDecoded()
Get the number of (piece) data bytes decoded from the transport, from the last decode op. |
int |
getPercentDoneOfCurrentMessage()
Get the percentage of the current message that has already been received (read from the transport). |
int |
getProtocolBytesDecoded()
Get the number of protocol (overhead) bytes decoded from the transport, from the last decode op. |
protected int |
getQueueSize()
|
void |
pauseDecoding()
Pause message decoding. |
protected void |
pauseInternally()
|
int |
performStreamDecode(Transport transport,
int max_bytes)
Decode message stream from the given transport. |
Message[] |
removeDecodedMessages()
Get the messages decoded from the transport, if any, from the last decode op. |
void |
resumeDecoding()
Resume message decoding. |
void |
setConnection(HTTPNetworkConnection _http_connection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPMessageDecoder()
public HTTPMessageDecoder(java.lang.String pre_read_header)
Method Detail |
---|
public void setConnection(HTTPNetworkConnection _http_connection)
public int performStreamDecode(Transport transport, int max_bytes) throws java.io.IOException
MessageStreamDecoder
performStreamDecode
in interface MessageStreamDecoder
transport
- to decode frommax_bytes
- to decode/read from the stream
java.io.IOException
- on decoding errorprotected void addMessage(Message message)
public Message[] removeDecodedMessages()
MessageStreamDecoder
removeDecodedMessages
in interface MessageStreamDecoder
public int getProtocolBytesDecoded()
MessageStreamDecoder
getProtocolBytesDecoded
in interface MessageStreamDecoder
public int getDataBytesDecoded()
MessageStreamDecoder
getDataBytesDecoded
in interface MessageStreamDecoder
public int getPercentDoneOfCurrentMessage()
MessageStreamDecoder
getPercentDoneOfCurrentMessage
in interface MessageStreamDecoder
protected void pauseInternally()
public void pauseDecoding()
MessageStreamDecoder
pauseDecoding
in interface MessageStreamDecoder
public void resumeDecoding()
MessageStreamDecoder
resumeDecoding
in interface MessageStreamDecoder
protected int getQueueSize()
public java.nio.ByteBuffer destroy()
MessageStreamDecoder
destroy
in interface MessageStreamDecoder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |