public class TcpProtocolHandle extends ProtocolStreamHandle
_contentLength, _source| 构造器和说明 |
|---|
TcpProtocolHandle(ByteBuffer source) |
| 限定符和类型 | 方法和说明 |
|---|---|
short |
ReadContentDelimiter() |
int |
ReadContentLength() |
protected String |
ReadCountedString() |
protected boolean |
readExtendedHeader(short headerType,
HashMap<String,Object> dict) |
protected int |
ReadInt32() |
int |
ReadMajorVersion() |
int |
ReadMinorVersion() |
short |
ReadOperation() |
String |
ReadPreamble() |
HashMap<String,Object> |
ReadTransportHeaders() |
protected short |
ReadUInt16() |
void |
WriteContentDelimiter(short value) |
void |
WriteContentLength(int value) |
protected void |
WriteCountedString(String value) |
protected boolean |
writeExtendedHeader(Map.Entry<String,Object> entry) |
protected void |
WriteInt32(int value) |
void |
WriteMajorVersion() |
void |
WriteMinorVersion() |
void |
WriteOperation(short value) |
void |
WritePreamble() |
void |
WriteTransportHeaders(HashMap<String,Object> headers) |
protected void |
WriteUInt16(short value) |
ReadByte, ReadBytes, ReadContent, WriteByte, WriteBytes, WriteContentpublic TcpProtocolHandle(ByteBuffer source)
public String ReadPreamble()
public void WritePreamble()
public int ReadMajorVersion()
public void WriteMajorVersion()
public int ReadMinorVersion()
public void WriteMinorVersion()
public short ReadOperation()
public void WriteOperation(short value)
public short ReadContentDelimiter()
public void WriteContentDelimiter(short value)
public int ReadContentLength()
public void WriteContentLength(int value)
public HashMap<String,Object> ReadTransportHeaders() throws NotSupportedException
protected boolean readExtendedHeader(short headerType,
HashMap<String,Object> dict)
throws NotSupportedException
protected final short ReadUInt16()
protected final void WriteUInt16(short value)
protected int ReadInt32()
protected void WriteInt32(int value)
protected final String ReadCountedString() throws NotSupportedException
protected final void WriteCountedString(String value)
Copyright © 2020. All rights reserved.