public abstract class ChunkHandler extends JdwpInterceptor
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_FAIL |
static int |
CHUNK_HEADER_LEN |
static java.nio.ByteOrder |
CHUNK_ORDER |
static int |
DDMS_CMD |
static int |
DDMS_CMD_SET |
| Modifier and Type | Method and Description |
|---|---|
protected static Client |
checkDebuggerPortForAppName(Client client,
java.lang.String appName)
Check that the client is opened with the proper debugger port for the
specified application name, and if not, reopen it.
|
static java.lang.String |
getString(java.nio.ByteBuffer buf,
int len)
Utility function to copy a String out of a ByteBuffer.
|
protected void |
handleUnknownChunk(Client client,
int type,
java.nio.ByteBuffer data,
boolean isReply,
int msgId)
Handle chunks not recognized by handlers.
|
JdwpPacket |
intercept(JdwpAgent agent,
JdwpPacket packet) |
public static final int CHUNK_HEADER_LEN
public static final java.nio.ByteOrder CHUNK_ORDER
public static final int CHUNK_FAIL
public static final int DDMS_CMD_SET
public static final int DDMS_CMD
protected void handleUnknownChunk(Client client, int type, java.nio.ByteBuffer data, boolean isReply, int msgId)
public static java.lang.String getString(java.nio.ByteBuffer buf,
int len)
protected static Client checkDebuggerPortForAppName(Client client, java.lang.String appName)
client - appName - public JdwpPacket intercept(@NonNull JdwpAgent agent, @NonNull JdwpPacket packet)
intercept in class JdwpInterceptor